package
1.9.1
Repository: https://github.com/netlify/gocommerce.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

NewPaymentConfirmFailError creates an error to use when a payment confirmation fails.
NewPaymentPendingError creates an error for a pending action on a payment.

# Constants

PayPalProvider is the string identifier for the PayPal payment provider.
StripeProvider is the string identifier for the Stripe payment provider.

# Structs

PaymentConfirmFailError is returned when the confirmation request got a negative response.
PaymentPendingError is returned when the payment provider requests additional action e.g.
PreauthorizationResult contains the data returned from a Preauthorization.

# Interfaces

Provider represents a payment provider that can optionally charge, refund, preauthorize payments.

# Type aliases

Charger wraps the Charge method which creates new payments with the provider.
Confirmer wraps a confirm method used for checking two-step payments in a synchronous flow.
Preauthorizer wraps the Preauthorize method which pre-authorizes a payment with the provider.
Refunder wraps the Refund method which refunds payments with the provider.