Documentation
¶
Overview ¶
Package providers defines the payment provider abstraction for the subscription plugin.
Index ¶
Constants ¶
View Source
const ( CheckoutModeSubscription = types.CheckoutModeSubscription CheckoutModePayment = types.CheckoutModePayment CheckoutModeSetup = types.CheckoutModeSetup )
Re-export checkout modes
View Source
const ( EventCustomerCreated = types.EventCustomerCreated EventCustomerUpdated = types.EventCustomerUpdated EventCustomerDeleted = types.EventCustomerDeleted EventSubscriptionCreated = types.EventSubscriptionCreated EventSubscriptionUpdated = types.EventSubscriptionUpdated EventSubscriptionDeleted = types.EventSubscriptionDeleted EventSubscriptionTrialWillEnd = types.EventSubscriptionTrialWillEnd EventInvoiceCreated = types.EventInvoiceCreated EventInvoicePaid = types.EventInvoicePaid EventInvoicePaymentFailed = types.EventInvoicePaymentFailed EventCheckoutSessionCompleted = types.EventCheckoutSessionCompleted EventPaymentIntentSucceeded = types.EventPaymentIntentSucceeded EventPaymentIntentFailed = types.EventPaymentIntentFailed EventPaymentMethodAttached = types.EventPaymentMethodAttached EventPaymentMethodDetached = types.EventPaymentMethodDetached )
Re-export event types
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProviderSubscription ¶
type ProviderSubscription = types.ProviderSubscription
Re-export types for convenience
Directories
¶
| Path | Synopsis |
|---|---|
|
Package mock provides a mock payment provider for testing.
|
Package mock provides a mock payment provider for testing. |
|
Package paddle provides a stub implementation of the PaymentProvider interface for Paddle.
|
Package paddle provides a stub implementation of the PaymentProvider interface for Paddle. |
|
Package paypal provides a stub implementation of the PaymentProvider interface for PayPal.
|
Package paypal provides a stub implementation of the PaymentProvider interface for PayPal. |
|
Package stripe provides Stripe payment provider implementation.
|
Package stripe provides Stripe payment provider implementation. |
|
Package types defines shared types for payment providers.
|
Package types defines shared types for payment providers. |
Click to show internal directories.
Click to hide internal directories.