Documentation
¶
Index ¶
Constants ¶
View Source
const ( HeaderXContentHMAC = "X-Content-HMAC" HeaderContentHMAC = "Content-HMAC" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudPayments ¶
type CloudPayments interface {
SetSecret(secret string)
SetPublicID(pubID string)
Post3ds(params Post3dsRequest) (*PaymentResponse, error)
PayByCryptogram(params CryptoPayRequest) (*PaymentResponse, error)
Subscribe(params CreateSubscribeRequest) (*PaymentResponse, error)
UpdateSubscribe(params UpdateSubscribeRequest) (*PaymentResponse, error)
GetSubscription(params SubscribeRequest) (*PaymentResponse, error)
FindSubscriptions(params FindSubscriptionsRequest) (*FindSubscriptionsResponse, error)
Unsubscribe(params SubscribeRequest) (*PaymentResponse, error)
}
func New ¶
func New(secret, publicID string) CloudPayments
type CreateSubscribeRequest ¶
type CryptoPayRequest ¶
type DefaultResponse ¶
type FindSubscriptionsRequest ¶
type FindSubscriptionsRequest struct {
AccountId string
}
type FindSubscriptionsResponse ¶
type FindSubscriptionsResponse struct {
DefaultResponse
Model []Model
}
type PaymentResponse ¶
type PaymentResponse struct {
DefaultResponse
Model
}
type Post3dsRequest ¶
type SubscribeRequest ¶
type SubscribeRequest struct {
Id string
}
Click to show internal directories.
Click to hide internal directories.