Documentation ¶
Index ¶
- Variables
- type AdyenAmountParams
- type AdyenAuthoriseAdditionalDataParams
- type AdyenAuthoriseMpiDataParams
- type AdyenAuthoriseParams
- type AdyenCaptureParams
- type AdyenCredentials
- type AdyenGooglePayParams
- type AdyenGooglePayPaymentMethodParams
- type CardEncryptParams
- type Gateway
- func (g *Gateway) AdyenCredentials() *AdyenCredentials
- func (g *Gateway) Charge(input *buyte.CreateChargeInput, networkToken *buyte.NetworkToken, ...) (*buyte.GatewayCharge, error)
- func (g *Gateway) ChargeNative(input *buyte.CreateChargeInput, nativeToken string, ...) (*buyte.GatewayCharge, error)
- func (g *Gateway) Encrypt(params *CardEncryptParams) (string, error)
- func (g *Gateway) IsConnect() bool
- func (g *Gateway) Post(url string, jsonBody []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var CardTypeSource = map[string]string{
"Apple Pay": "applepay",
"Google Pay": "paywithgoogle",
}
Functions ¶
This section is empty.
Types ¶
type AdyenAmountParams ¶
type AdyenAuthoriseParams ¶
type AdyenAuthoriseParams struct { Reference string `json:"reference"` MerchantAccount string `json:"merchantAccount"` Amount AdyenAmountParams `json:"amount"` AdditionalData AdyenAuthoriseAdditionalDataParams `json:"additionalData"` MpiData AdyenAuthoriseMpiDataParams `json:"mpiData"` }
type AdyenCaptureParams ¶
type AdyenCaptureParams struct { Reference string `json:"reference"` MerchantAccount string `json:"merchantAccount"` ModificationAmount AdyenAmountParams `json:"modificationAmount"` OriginalReference string `json:"originalReference"` }
type AdyenCredentials ¶
type AdyenCredentials struct { Username []byte `json:"username"` Password []byte `json:"password"` MerchantAccount string `json:"merchantAccount"` CsePublicKey string `json:"csePublicKey"` LiveUrlPrefix string `json:"liveUrlPrefix"` }
func (*AdyenCredentials) AuthKey ¶
func (a *AdyenCredentials) AuthKey() string
type AdyenGooglePayParams ¶
type AdyenGooglePayParams struct { Reference string `json:"reference"` MerchantAccount string `json:"merchantAccount"` Amount AdyenAmountParams `json:"amount"` PaymentMethod AdyenGooglePayPaymentMethodParams `json:"paymentMethod"` }
type CardEncryptParams ¶
type Gateway ¶
func (*Gateway) AdyenCredentials ¶
func (g *Gateway) AdyenCredentials() *AdyenCredentials
func (*Gateway) Charge ¶
func (g *Gateway) Charge(input *buyte.CreateChargeInput, networkToken *buyte.NetworkToken, paymentToken *buyte.PaymentToken) (*buyte.GatewayCharge, error)
func (*Gateway) ChargeNative ¶
func (g *Gateway) ChargeNative(input *buyte.CreateChargeInput, nativeToken string, paymentToken *buyte.PaymentToken) (*buyte.GatewayCharge, error)
Click to show internal directories.
Click to hide internal directories.