Documentation ¶
Index ¶
Constants ¶
View Source
const PaymentSessionsPath = "payment-sessions"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 PaymentMethodConfiguration ¶ added in v1.2.0
type PaymentMethodConfiguration struct {
Card *CardStorePaymentDetails `json:"card,omitempty"`
}
type PaymentMethods ¶
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 StorePaymentDetailsType ¶ added in v1.2.0
type StorePaymentDetailsType string
const ( Disabled StorePaymentDetailsType = "disabled" Enabled StorePaymentDetailsType = "enabled" )
Click to show internal directories.
Click to hide internal directories.