providers

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

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 CheckoutMode

type CheckoutMode = types.CheckoutMode

Re-export types for convenience

type CheckoutRequest

type CheckoutRequest = types.CheckoutRequest

Re-export types for convenience

type CheckoutSession

type CheckoutSession = types.CheckoutSession

Re-export types for convenience

type PaymentProvider

type PaymentProvider = types.PaymentProvider

Re-export types for convenience

type PriceRecurring

type PriceRecurring = types.PriceRecurring

Re-export types for convenience

type ProviderInvoice

type ProviderInvoice = types.ProviderInvoice

Re-export types for convenience

type ProviderPrice

type ProviderPrice = types.ProviderPrice

Re-export types for convenience

type ProviderProduct

type ProviderProduct = types.ProviderProduct

Re-export types for convenience

type ProviderSubscription

type ProviderSubscription = types.ProviderSubscription

Re-export types for convenience

type WebhookEvent

type WebhookEvent = types.WebhookEvent

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL