payment_sessions

package
v1.0.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const PaymentSessionsPath = "payment-sessions"

Variables

This section is empty.

Functions

This section is empty.

Types

type Billing

type Billing struct {
	Address *common.Address `json:"address,omitempty"`
}

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 PaymentMethods struct {
	Type        string   `json:"type,omitempty"`
	CardSchemes []string `json:"card_schemes,omitempty"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL