payment_sessions

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 6 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 CardStorePaymentDetails added in v1.2.0

type CardStorePaymentDetails struct {
	StorePaymentDetails StorePaymentDetailsType `json:"store_payment_details,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 PaymentCustomerRequest added in v1.2.0

type PaymentCustomerRequest struct {
	Id        string        `json:"id,omitempty"`
	Email     string        `json:"email,omitempty"`
	Name      string        `json:"name,omitempty"`
	TaxNumber string        `json:"tax_number,omitempty"`
	Phone     *common.Phone `json:"phone,omitempty"`
	Default   bool          `json:"default,omitempty"`
}

type PaymentMethodConfiguration added in v1.2.0

type PaymentMethodConfiguration struct {
	Card *CardStorePaymentDetails `json:"card,omitempty"`
}

type PaymentMethods

type PaymentMethods struct {
	Type        string   `json:"type,omitempty"`
	CardSchemes []string `json:"card_schemes,omitempty"`
}

type PaymentMethodsType added in v1.2.0

type PaymentMethodsType string
const (
	Applepay   PaymentMethodsType = "applepay"
	Bancontact PaymentMethodsType = "bancontact"
	Card       PaymentMethodsType = "card"
	EPS        PaymentMethodsType = "eps"
	Giropay    PaymentMethodsType = "giropay"
	Googlepay  PaymentMethodsType = "googlepay"
	Ideal      PaymentMethodsType = "ideal"
	KNet       PaymentMethodsType = "knet"
	Multibanco PaymentMethodsType = "multibanco"
	Przelewy24 PaymentMethodsType = "p24"
	Paypal     PaymentMethodsType = "paypal"
	Sofort     PaymentMethodsType = "sofort"
)

type PaymentSessionsRequest

type PaymentSessionsRequest struct {
	Amount                     int64                         `json:"amount,omitempty"`
	Currency                   common.Currency               `json:"currency,omitempty"`
	PaymentType                payments.PaymentType          `json:"payment_type,omitempty"`
	Billing                    *payments.BillingInformation  `json:"billing,omitempty"`
	BillingDescriptor          *payments.BillingDescriptor   `json:"billing_descriptor,omitempty"`
	Reference                  string                        `json:"reference,omitempty"`
	Description                string                        `json:"description,omitempty"`
	Customer                   *common.CustomerRequest       `json:"customer,omitempty"`
	Shipping                   *payments.ShippingDetails     `json:"shipping,omitempty"`
	Recipient                  *payments.PaymentRecipient    `json:"recipient,omitempty"`
	Processing                 *payments.ProcessingSettings  `json:"processing,omitempty"`
	ProcessingChannelId        string                        `json:"processing_channel_id,omitempty"`
	ExpiresOn                  *time.Time                    `json:"expires_on,omitempty"`
	PaymentMethodConfiguration *PaymentMethodConfiguration   `json:"payment_method_configuration,omitempty"`
	EnabledPaymentMethods      []PaymentMethodsType          `json:"enabled_payment_methods,omitempty"`
	DisabledPaymentMethods     []PaymentMethodsType          `json:"disabled_payment_methods,omitempty"`
	Items                      []payments.Product            `json:"items,omitempty"`
	AmountAllocations          []common.AmountAllocations    `json:"amount_allocations,omitempty"`
	Risk                       *payments.RiskRequest         `json:"risk,omitempty"`
	CustomerRetry              *payments.PaymentRetryRequest `json:"customer_retry,omitempty"`
	DisplayName                string                        `json:"display_name,omitempty"`
	SuccessUrl                 string                        `json:"success_url,omitempty"`
	FailureUrl                 string                        `json:"failure_url,omitempty"`
	Metadata                   map[string]interface{}        `json:"metadata,omitempty"`
	Locale                     string                        `json:"locale,omitempty"`
	ThreeDsRequest             *payments.ThreeDsRequest      `json:"3ds,omitempty"`
	Sender                     *nas.Sender                   `json:"sender,omitempty"`
	Capture                    bool                          `json:"capture"`
	CaptureOn                  *time.Time                    `json:"capture_on,omitempty"`
	IpAddress                  string                        `json:"ip_address,omitempty"`
}

type PaymentSessionsResponse

type PaymentSessionsResponse struct {
	HttpMetadata        common.HttpMetadata
	Id                  string                 `json:"id,omitempty"`
	PaymentSessionToken string                 `json:"payment_session_token,omitempty"`
	Links               map[string]common.Link `json:"links,omitempty"`
}

type StorePaymentDetailsType added in v1.2.0

type StorePaymentDetailsType string
const (
	Disabled StorePaymentDetailsType = "disabled"
	Enabled  StorePaymentDetailsType = "enabled"
)

Jump to

Keyboard shortcuts

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