Documentation ¶
Index ¶
Constants ¶
View Source
const PaymentSessionsPath = "payment-sessions"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(configuration *configuration.Configuration, apiClient client.HttpClient) *Client
func (*Client) RequestPaymentSessions ¶
func (c *Client) RequestPaymentSessions(request PaymentSessionsRequest) (*PaymentSessionsResponse, error)
type PaymentMethods ¶
type PaymentSessionsRequest ¶
type PaymentSessionsRequest struct { Amount int64 `json:"amount,omitempty"` Currency common.Currency `json:"currency,omitempty"` Reference string `json:"reference,omitempty"` Billing *Billing `json:"billing,omitempty"` Customer *common.CustomerRequest `json:"customer,omitempty"` SuccessUrl string `json:"success_url,omitempty"` FailureUrl string `json:"failure_url,omitempty"` }
type PaymentSessionsResponse ¶
type PaymentSessionsResponse struct { HttpMetadata common.HttpMetadata Id string `json:"id,omitempty"` Amount int64 `json:"amount,omitempty"` Locale string `json:"locale,omitempty"` Currency common.Currency `json:"currency,omitempty"` Customer *common.CustomerRequest `json:"customer,omitempty"` PaymentMethods []PaymentMethods `json:"payment_methods,omitempty"` Links map[string]common.Link `json:"links,omitempty"` }
Click to show internal directories.
Click to hide internal directories.