Versions in this module Expand all Collapse all v0 v0.4.7 Jul 30, 2019 Changes in this version + const CheckoutAPIVersion + const DefaultClientTimeout + const DefaultCurrency + const DelayedCharge + const Female + const Male + const NoShow + const PaymentAPIVersion + const PaymentService + const RecurringAPIVersion + const RecurringPaymentOneClick + const RecurringPaymentRecurring + const RecurringService + const SelectRecurringDetailReferenceLatests + const ShopperInteractionContAuth + const Unknown + var CurrencyDecimals = map[string]uint + var DefaultCurrencyDecimals uint = 2 + var Production = Environment + var Testing = Environment + func WithCurrency(c string) func(*Adyen) + func WithTimeout(d time.Duration) func(*Adyen) + func WithTransport(transport http.RoundTripper) func(*Adyen) + type APIError struct + ErrorCode string + ErrorType string + Message string + Status int32 + func (e APIError) Error() string + type AdditionalData struct + Alias string + AliasType string + CardBin string + CardHolderName string + CardIssuingCountry string + CardPaymentMethod string + CardSummary string + Content string + CustomRoutingFlag string + ExecuteThreeD *StringBool + ExpiryDate string + FundingSource string + PaymentMethod string + RecurringDetailReference string + RequestedTestAcquirerResponseCode int + type Address struct + City string + Country string + HouseNumberOrName string + PostalCode string + StateOrProvince string + Street string + type AdjustAuthorisation struct + AdditionalData struct{ ... } + MerchantAccount string + ModificationAmount *Amount + OriginalReference string + Reference string + type AdjustAuthorisationResponse struct + PspReference string + Response string + type Adyen struct + Credentials apiCredentials + Currency string + MerchantAccount string + func New(env Environment, username, password string, opts ...Option) *Adyen + func NewWithCredentials(env Environment, creds apiCredentials, opts ...Option) *Adyen + func NewWithHMAC(env Environment, username, password, hmac string, opts ...Option) *Adyen + func (a *Adyen) Checkout() *CheckoutGateway + func (a *Adyen) ClientURL(clientID string) string + func (a *Adyen) Modification() *ModificationGateway + func (a *Adyen) Payment() *PaymentGateway + func (a *Adyen) Recurring() *RecurringGateway + type Amount struct + Currency string + Value float32 + func NewAmount(currency string, amount float32) *Amount + type Authorise struct + AdditionalData *AdditionalData + Amount *Amount + BillingAddress *Address + BrowserInfo *BrowserInfo + CaptureDelayHours *int + Card *Card + DeliveryAddress *Address + MerchantAccount string + Recurring *Recurring + Reference string + SelectedRecurringDetailReference string + ShopperEmail string + ShopperIP string + ShopperInteraction string + ShopperLocale string + ShopperName *Name + ShopperReference string + type Authorise3D struct + BillingAddress *Address + BrowserInfo *BrowserInfo + DeliveryAddress *Address + MD string + MerchantAccount string + PaResponse string + ShopperEmail string + ShopperIP string + ShopperLocale string + ShopperName *Name + type AuthoriseEncrypted struct + AdditionalData *AdditionalData + Amount *Amount + BillingAddress *Address + BrowserInfo *BrowserInfo + CaptureDelayHours *int + DeliveryAddress *Address + MerchantAccount string + Recurring *Recurring + Reference string + SelectedRecurringDetailReference string + ShopperEmail string + ShopperIP string + ShopperInteraction string + ShopperLocale string + ShopperName *Name + ShopperReference string + type AuthoriseResponse struct + AdditionalData *AdditionalData + AuthCode string + IssuerURL string + MD string + PaRequest string + PspReference string + RefusalReason string + ResultCode string + type BrowserInfo struct + AcceptHeader string + UserAgent string + type Cancel struct + MerchantAccount string + OriginalReference string + Reference string + type CancelOrRefundResponse struct + PspReference string + Response string + type CancelResponse struct + PspReference string + Response string + type Capture struct + MerchantAccount string + ModificationAmount *Amount + OriginalReference string + Reference string + type CaptureResponse struct + PspReference string + Response string + type Card struct + Cvc string + ExpireMonth string + ExpireYear string + HolderName string + Number string + type CheckoutGateway struct + func (a *CheckoutGateway) PaymentMethods(req *PaymentMethods) (*PaymentMethodsResponse, error) + type DirectoryLookupRequest struct + CountryCode string + CurrencyCode string + MerchantAccount string + MerchantReference string + MerchantSig string + PaymentAmount int + SessionsValidity string + ShipBeforeDate string + SkinCode string + func (r *DirectoryLookupRequest) CalculateSignature(adyen *Adyen) error + type DirectoryLookupResponse struct + PaymentMethods []PaymentMethod + type Environment struct + func ProductionEnvironment(random, companyName string) (e Environment, err error) + func TestEnvironment() (e Environment) + func (e Environment) BaseURL(service string, version string) string + func (e Environment) CheckoutURL(service string, version string) string + func (e Environment) ClientURL(clientID string) string + func (e Environment) HppURL(request string) string + func (e Environment) OverwriteAPIURL(url string) + type ModificationGateway struct + func (a *ModificationGateway) AdjustAuthorisation(req *AdjustAuthorisation) (*AdjustAuthorisationResponse, error) + func (a *ModificationGateway) Cancel(req *Cancel) (*CancelResponse, error) + func (a *ModificationGateway) CancelOrRefund(req *Cancel) (*CancelOrRefundResponse, error) + func (a *ModificationGateway) Capture(req *Capture) (*CaptureResponse, error) + func (a *ModificationGateway) Refund(req *Refund) (*RefundResponse, error) + func (a *ModificationGateway) TechnicalCancel(req *TechnicalCancel) (*TechnicalCancelResponse, error) + type Name struct + FirstName string + Gender string + Infix string + LastName string + type NotificationRequest struct + Live StringBool + NotificationItems []NotificationRequestItem + type NotificationRequestItem struct + NotificationRequestItem NotificationRequestItemData + type NotificationRequestItemData struct + AdditionalData struct{ ... } + Amount Amount + EventCode string + EventDate time.Time + MerchantAccountCode string + MerchantReference string + Operations []string + OriginalReference string + PaymentMethod string + PspReference string + Reason string + Success StringBool + type OneClickPaymentMethodDetails struct + Details []PaymentMethodTypes + Name string + StoredDetails PaymentMethodStoredDetails + Type string + type Option func(*Adyen) + type PaymentGateway struct + func (a *PaymentGateway) Authorise(req *Authorise) (*AuthoriseResponse, error) + func (a *PaymentGateway) Authorise3D(req *Authorise3D) (*AuthoriseResponse, error) + func (a *PaymentGateway) AuthoriseEncrypted(req *AuthoriseEncrypted) (*AuthoriseResponse, error) + func (a *PaymentGateway) DirectoryLookup(req *DirectoryLookupRequest) (*DirectoryLookupResponse, error) + func (a *PaymentGateway) GetHPPRedirectURL(req *SkipHppRequest) (string, error) + type PaymentMethod struct + BrandCode string + Issuers []issuer + Logos logos + Name string + type PaymentMethodCard struct + ExpiryMonth string + ExpiryYear string + HolderName string + Number string + type PaymentMethodDetails struct + Details []PaymentMethodDetailsInfo + Name string + Type string + type PaymentMethodDetailsInfo struct + Items []PaymentMethodItems + Key string + Type string + type PaymentMethodItems struct + ID string + Name string + type PaymentMethodStoredDetails struct + Card PaymentMethodCard + type PaymentMethodTypes struct + Key string + Type string + type PaymentMethods struct + Amount *Amount + Channel string + CountryCode string + MerchantAccount string + ShopperLocale string + ShopperReference string + type PaymentMethodsResponse struct + OneClickPaymentMethods []OneClickPaymentMethodDetails + PaymentMethods []PaymentMethodDetails + type Recurring struct + Contract string + type RecurringDetail struct + Acquirer string + AcquirerAccount string + AdditionalData struct{ ... } + Alias string + AliasType string + Card Card + ContractTypes []string + CreationDate string + FirstPspReference string + PaymentMethodVariant string + RecurringDetailReference string + Variant string + type RecurringDetailsRequest struct + MerchantAccount string + Recurring *Recurring + ShopperReference string + type RecurringDetailsResult struct + CreationDate string + Details []struct{ ... } + InvalidOneclickContracts string + ShopperReference string + type RecurringDisableRequest struct + Contract string + MerchantAccount string + RecurringDetailReference string + ShopperReference string + type RecurringDisableResponse struct + Response string + type RecurringGateway struct + func (a *RecurringGateway) DisableRecurring(req *RecurringDisableRequest) (*RecurringDisableResponse, error) + func (a *RecurringGateway) ListRecurringDetails(req *RecurringDetailsRequest) (*RecurringDetailsResult, error) + type Refund struct + MerchantAccount string + ModificationAmount *Amount + OriginalReference string + Reference string + type RefundResponse struct + PspReference string + Response string + type Response struct + Body []byte + type SkipHppRequest struct + BrandCode string + CountryCode string + CurrencyCode string + IssuerID string + MerchantAccount string + MerchantReference string + MerchantSig string + PaymentAmount int + SessionsValidity string + ShipBeforeDate string + ShopperLocale string + SkinCode string + func (r *SkipHppRequest) CalculateSignature(adyen *Adyen) error + type StringBool bool + func NewStringBool(b bool) *StringBool + func (b *StringBool) UnmarshalJSON(data []byte) (err error) + func (b StringBool) MarshalJSON() ([]byte, error) + type TechnicalCancel struct + MerchantAccount string + OriginalMerchantReference string + Reference string + type TechnicalCancelResponse struct + PspReference string + Response string