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 Address struct + City string + Country string + LineOne string + LineTwo *string + Name string + PostalCode string + State string + type Allowance struct + CheckoutSessionId string + Currency string + ExpiresAt time.Time + MaxAmount int + MerchantId string + Reason AllowanceReason + type AllowanceReason string + const OneTime + func (e AllowanceReason) Valid() bool + type Authorization = string + type ContentType = string + type DelegatePaymentJSONRequestBody = DelegatePaymentRequest + type DelegatePaymentParams struct + APIVersion APIVersion + AcceptLanguage *AcceptLanguage + Authorization Authorization + ContentType ContentType + IdempotencyKey IdempotencyKey + RequestId *RequestId + Signature *Signature + Timestamp *Timestamp + UserAgent *UserAgent + type DelegatePaymentRequest struct + Allowance Allowance + BillingAddress *Address + Metadata map[string]string + PaymentMethod PaymentMethodCard + RiskSignals []RiskSignal + type DelegatePaymentResponse struct + Created time.Time + Id string + Metadata map[string]string + type Handler struct + func NewHandler(service 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 PaymentMethodCard struct + CardNumberType PaymentMethodCardCardNumberType + ChecksPerformed *[]PaymentMethodCardChecksPerformed + Cryptogram *string + Cvc *string + DisplayBrand *string + DisplayCardFundingType PaymentMethodCardDisplayCardFundingType + DisplayLast4 *string + DisplayWalletType *string + EciValue *string + ExpMonth *string + ExpYear *string + Iin *string + Metadata map[string]string + Name *string + Number string + Type PaymentMethodCardType + Virtual *bool + type PaymentMethodCardCardNumberType string + const Fpan + const NetworkToken + func (e PaymentMethodCardCardNumberType) Valid() bool + type PaymentMethodCardChecksPerformed string + const Ani + const Auth0 + const Avs + const Cvv + func (e PaymentMethodCardChecksPerformed) Valid() bool + type PaymentMethodCardDisplayCardFundingType string + const Credit + const Debit + const Prepaid + func (e PaymentMethodCardDisplayCardFundingType) Valid() bool + type PaymentMethodCardType string + const Card + func (e PaymentMethodCardType) Valid() bool + type Provider interface + DelegatePayment func(ctx context.Context, req DelegatePaymentRequest) (*DelegatePaymentResponse, error) + type RequestId = string + type RiskSignal struct + Action RiskSignalAction + Score int + Type RiskSignalType + type RiskSignalAction string + const Authorized + const Blocked + const ManualReview + func (e RiskSignalAction) Valid() bool + type RiskSignalType string + const CardTesting + func (e RiskSignalType) Valid() bool + type Signature = string + type Timestamp = time.Time + type UserAgent = string