Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthTransaction ¶
type AuthTransaction struct { // Anonymous field, to embed the PaymentTransaction struct (composition) PaymentTransaction }
type CaptureTransaction ¶
type CaptureTransaction struct { // Payment UUID Payment_uuid string `json:"payment_uuid,omitempty"` // The total amount to capture, equal to or less than the authorized amount. Transaction_approved_amount string `json:"transaction_approved_amount,omitempty"` // Anonymous field, to embed the RequestBehaviour struct (composition) RequestBehaviour }
type CardTokenization ¶
type CardTokenization struct { // Card number or PAN Number string `json:"number,omitempty"` // Card security code Cvv2 string `json:"cvv2,omitempty"` // Card expire month date (MM) Expire_month string `json:"expire_month,omitempty"` // Card expire year date (YYYY) Expire_year string `json:"expire_year,omitempty"` // Cardholder name Cardholder string `json:"cardholder,omitempty"` // Customer billing address Address string `json:"address,omitempty"` // Customer billing country alpha-2 code (ISO 3166-1) Country string `json:"country,omitempty"` // Customer billing state alpha code (ISO 3166-2) State string `json:"state,omitempty"` // Customer billing city City string `json:"city,omitempty"` // Customer billing postal code Zip string `json:"zip,omitempty"` // Customer billing phone Phone string `json:"phone,omitempty"` // Customer email Email string `json:"email,omitempty"` // Anonymous field, to embed the RequestBehaviour struct (composition) RequestBehaviour }
func (*CardTokenization) SetBilling ¶
func (ct *CardTokenization) SetBilling(billing models.Billing)
Associate and mapping Billing model properties to transaction
func (*CardTokenization) SetCard ¶
func (ct *CardTokenization) SetCard(card models.Card)
Associate and mapping Card model properties to transaction
type PaymentTransaction ¶
type PaymentTransaction struct { // Payment UUID Payment_uuid string `json:"payment_uuid,omitempty"` // Tokenized card identifier (T-* format) Card_token string `json:"card_token,omitempty"` // Card number or PAN Card_number string `json:"card_number,omitempty"` // Card security code Card_cvv string `json:"card_cvv,omitempty"` // The card expire Card_expire string `json:"card_expire,omitempty"` // Cardholder name Card_holder string `json:"card_holder,omitempty"` // Customer billing address Billing_address string `json:"billing_address,omitempty"` // Customer billing country alpha-2 code (ISO 3166-1) Billing_country string `json:"billing_country,omitempty"` // Customer billing state alpha code (ISO 3166-2) Billing_state string `json:"billing_state,omitempty"` // Customer billing city Billing_city string `json:"billing_city,omitempty"` // Customer billing postal code Billing_zip string `json:"billing_zip,omitempty"` // Customer billing phone Billing_phone string `json:"billing_phone,omitempty"` // Order customer name Customer_name string `json:"customer_name,omitempty"` // Order customer email Customer_email string `json:"customer_email,omitempty"` // Order customer device fingerprint Customer_fingerprint string `json:"customer_fingerprint,omitempty"` // Order ID Order_id string `json:"order_id,omitempty"` // Order currency code alpha-3 Order_currency string `json:"order_currency,omitempty"` // Order total amount Order_amount string `json:"order_amount,omitempty"` // Order total tax amount Order_tax_amount string `json:"order_tax_amount,omitempty"` // Order total shipping amount Order_shipping_amount string `json:"order_shipping_amount,omitempty"` // Order summary of items or products Order_content []models.Item `json:"order_content,omitempty"` // Order extra properties Order_extras map[string]string `json:"order_extras,omitempty"` // Order note or aditional instructions Order_note string `json:"order_note,omitempty"` // The order callback Order_callback string `json:"order_callback,omitempty"` // Activate authentication request (3DS/EMV) Authentication_request bool `json:"authentication_request,omitempty"` // Authentication transaction identifier Authentication_identifier string `json:"authentication_identifier,omitempty"` // Anonymous field, to embed the RequestBehaviour struct (composition) RequestBehaviour }
func (*PaymentTransaction) SetBilling ¶
func (p *PaymentTransaction) SetBilling(billing models.Billing)
Associate and mapping Billing model properties to transaction
func (*PaymentTransaction) SetCard ¶
func (p *PaymentTransaction) SetCard(card models.Card)
Associate and mapping Card model properties to transaction
func (*PaymentTransaction) SetCardToken ¶
func (p *PaymentTransaction) SetCardToken(token string)
Associate and mapping CardToken model properties to transaction
func (*PaymentTransaction) SetOrder ¶
func (p *PaymentTransaction) SetOrder(order models.Order)
Associate and mapping Order model properties to transaction
func (*PaymentTransaction) WithAuthenticationRequest ¶
func (p *PaymentTransaction) WithAuthenticationRequest()
Enable 3DS/EMV authentication request
type RequestBehaviour ¶
type RequestBehaviour struct { // Environment identifier (live|test|sandbox) Env string `json:"env,omitempty"` // Transaction response messages language Lang string `json:"lang,omitempty"` // SDK identifier type From string `json:"from,omitempty"` // SDK version Sdk_version string `json:"sdk_version,omitempty"` }
type SaleTransaction ¶
type SaleTransaction struct { // Anonymous field, to embed the PaymentTransaction struct (composition) PaymentTransaction }
type StatusTransaction ¶
type StatusTransaction struct { // Payment UUID Payment_uuid string `json:"payment_uuid,omitempty"` // Anonymous field, to embed the RequestBehaviour struct (composition) RequestBehaviour }
type VoidTransaction ¶
type VoidTransaction struct { // Payment UUID Payment_uuid string `json:"payment_uuid,omitempty"` // Reason for void the order Void_reason string `json:"void_reason,omitempty"` // Anonymous field, to embed the RequestBehaviour struct (composition) RequestBehaviour }
Click to show internal directories.
Click to hide internal directories.