Versions in this module Expand all Collapse all v0 v0.1.0 Aug 15, 2026 Changes in this version + type APIVersion = string + type AcceptLanguage = string + type Action struct + Challenge *ChallengeAction + Fingerprint *FingerprintAction + Type ActionType + func (t *Action) FromAction0(v Action0) error + func (t *Action) FromAction1(v Action1) error + func (t *Action) MergeAction0(v Action0) error + func (t *Action) MergeAction1(v Action1) error + func (t *Action) UnmarshalJSON(b []byte) error + func (t Action) AsAction0() (Action0, error) + func (t Action) AsAction1() (Action1, error) + func (t Action) MarshalJSON() ([]byte, error) + type Action0 struct + Type interface{} + type Action1 struct + Type interface{} + type ActionType string + const ActionTypeChallenge + const ActionTypeFingerprint + func (e ActionType) Valid() bool + type Address struct + City string + Country string + LineOne string + LineTwo *string + Name string + PostalCode string + State string + type Amount struct + Currency string + Value int + type AuthenticateSessionJSONRequestBody = DelegateAuthenticationAuthenticateRequest + type AuthenticateSessionParams struct + APIVersion APIVersion + AcceptLanguage *AcceptLanguage + Authorization Authorization + ContentType ContentType + IdempotencyKey *IdempotencyKey + RequestId *RequestId + Signature *Signature + Timestamp *Timestamp + UserAgent *UserAgent + type AuthenticationResult struct + AuthenticationValue *string + CardholderInfo *string + ElectronicCommerceIndicator *string + ThreeDsCryptogram *string + ThreeDsServerTransId string + TransStatus string + TransStatusReason *string + TransactionId string + Version string + type Authorization = string + type BrowserInfo struct + AcceptHeader string + ColorDepth *int + IpAddress string + JavaEnabled *bool + JavascriptEnabled bool + Language string + ScreenHeight *int + ScreenWidth *int + TimezoneOffset *int + UserAgent string + type ChallengeAction struct + AcsTransId string + AcsUrl string + MessageVersion string + ThreeDsServerTransId string + type Channel struct + Browser BrowserInfo + Type ChannelType + type ChannelType string + const Browser + func (e ChannelType) Valid() bool + type ContentType = string + type CreateAuthenticationSessionJSONRequestBody = DelegateAuthenticationCreateRequest + type CreateAuthenticationSessionParams struct + APIVersion APIVersion + AcceptLanguage *AcceptLanguage + Authorization Authorization + ContentType ContentType + IdempotencyKey *IdempotencyKey + RequestId *RequestId + Signature *Signature + Timestamp *Timestamp + UserAgent *UserAgent + type DelegateAuthenticationAuthenticateRequest struct + ChallengeNotificationUrl *string + Channel *Channel + CheckoutSessionId *string + FingerprintCompletion DelegateAuthenticationAuthenticateRequestFingerprintCompletion + ShopperDetails *ShopperDetails + type DelegateAuthenticationAuthenticateRequestFingerprintCompletion string + const N + const U + const Y + func (e DelegateAuthenticationAuthenticateRequestFingerprintCompletion) Valid() bool + type DelegateAuthenticationCreateRequest struct + AcquirerDetails ... + Amount Amount + ChallengeNotificationUrl *string + Channel *Channel + CheckoutSessionId *string + FlowPreference *FlowPreference + MerchantId string + PaymentMethod PaymentMethod + ShopperDetails *ShopperDetails + type DelegateAuthenticationSession = DelegateAuthenticationSessionBase + type DelegateAuthenticationSessionBase struct + Action *Action + AuthenticationSessionId string + Status DelegateAuthenticationSessionBaseStatus + type DelegateAuthenticationSessionBaseStatus string + const DelegateAuthenticationSessionBaseStatusActionRequired + const DelegateAuthenticationSessionBaseStatusAttempted + const DelegateAuthenticationSessionBaseStatusAuthenticated + const DelegateAuthenticationSessionBaseStatusChallengeAbandoned + const DelegateAuthenticationSessionBaseStatusExpired + const DelegateAuthenticationSessionBaseStatusNotAuthenticated + const DelegateAuthenticationSessionBaseStatusNotSupported + const DelegateAuthenticationSessionBaseStatusPending + const DelegateAuthenticationSessionBaseStatusRejected + const DelegateAuthenticationSessionBaseStatusUnavailable + func (e DelegateAuthenticationSessionBaseStatus) Valid() bool + type DelegateAuthenticationSessionWithResult struct + Action *Action + AuthenticationResult *AuthenticationResult + AuthenticationSessionId string + Status DelegateAuthenticationSessionWithResultStatus + type DelegateAuthenticationSessionWithResultStatus string + const DelegateAuthenticationSessionWithResultStatusActionRequired + const DelegateAuthenticationSessionWithResultStatusAttempted + const DelegateAuthenticationSessionWithResultStatusAuthenticated + const DelegateAuthenticationSessionWithResultStatusChallengeAbandoned + const DelegateAuthenticationSessionWithResultStatusExpired + const DelegateAuthenticationSessionWithResultStatusNotAuthenticated + const DelegateAuthenticationSessionWithResultStatusNotSupported + const DelegateAuthenticationSessionWithResultStatusPending + const DelegateAuthenticationSessionWithResultStatusRejected + const DelegateAuthenticationSessionWithResultStatusUnavailable + func (e DelegateAuthenticationSessionWithResultStatus) Valid() bool + type Error struct + Code ErrorCode + Message string + Param *string + Type ErrorType + type ErrorCode string + const DuplicateRequest + const IdempotencyConflict + const InvalidCard + func (e ErrorCode) Valid() bool + type ErrorType string + const InvalidRequest + const ProcessingError + const RateLimitExceeded + const ServiceUnavailable + func (e ErrorType) Valid() bool + type FingerprintAction struct + ThreeDsMethodUrl string + ThreeDsServerTransId string + type FlowPreference struct + Challenge ... + Frictionless *map[string]interface{} + Type FlowPreferenceType + type FlowPreferenceChallengeType string + const Mandated + const Preferred + func (e FlowPreferenceChallengeType) Valid() bool + type FlowPreferenceType string + const FlowPreferenceTypeChallenge + const FlowPreferenceTypeFrictionless + func (e FlowPreferenceType) Valid() bool + type GetAuthenticationSessionParams struct + APIVersion APIVersion + AcceptLanguage *AcceptLanguage + Authorization Authorization + RequestId *RequestId + Signature *Signature + Timestamp *Timestamp + UserAgent *UserAgent + type Handler struct + func NewHandler(provider Provider, authorizer acpauth.Authorizer, opts ...Option) *Handler + func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type IdempotencyKey = string + type Option func(*config) + func WithServeMux(mux *http.ServeMux) Option + type PaymentMethod struct + ExpMonth string + ExpYear string + Name string + Number string + Type PaymentMethodType + type PaymentMethodType string + const Card + func (e PaymentMethodType) Valid() bool + type Provider interface + AuthenticateSession func(context.Context, string, DelegateAuthenticationAuthenticateRequest) (*DelegateAuthenticationSession, error) + CreateAuthenticationSession func(context.Context, DelegateAuthenticationCreateRequest) (*DelegateAuthenticationSession, error) + GetAuthenticationSession func(context.Context, string) (*DelegateAuthenticationSessionWithResult, error) + type RequestId = string + type ShopperDetails struct + Address *Address + Email *openapi_types.Email + Name *string + PhoneNumber *string + type Signature = string + type Timestamp = time.Time + type UserAgent = string