stripe

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	SecretKey         string
	WebhookSigningKey string
	// contains filtered or unexported fields
}

func New

func New(secretKey, webhookSigningKey string) *Channel

func (*Channel) CancelCheckout

func (c *Channel) CancelCheckout(ctx context.Context, sessionRef string) error

func (*Channel) CancelSubscription

func (c *Channel) CancelSubscription(ctx context.Context, providerSubID string) error

func (*Channel) Capabilities added in v0.13.0

func (c *Channel) Capabilities() app.ChannelCaps

func (*Channel) ChannelConfig

func (c *Channel) ChannelConfig() app.ChannelConfigInfo

func (*Channel) ConfigSchema added in v0.13.0

func (c *Channel) ConfigSchema() []app.FieldSpec

ConfigSchema implements app.ChannelSchemaViewer (BC-6): the admin channel card renders its form from this descriptor. Field keys are the billing_channel.stripe.* settings keys.

func (*Channel) CreateCheckout

func (c *Channel) CreateCheckout(ctx context.Context, req app.CheckoutRequest) (domain.CheckoutSession, error)

func (*Channel) EnvProvidedKeys added in v0.13.0

func (c *Channel) EnvProvidedKeys() []string

EnvProvidedKeys implements app.ChannelEnvViewer (billing fix #6): it lists the schema keys whose env var is currently set, so the admin API can allow clearing a required field ("empty DB row = fall back to env") and the card can surface the env fallback to the frontend.

func (*Channel) Name

func (c *Channel) Name() string

func (*Channel) ParseWebhook

func (c *Channel) ParseWebhook(ctx context.Context, req app.WebhookRequest) (domain.PaymentEvent, error)

func (*Channel) TestConnection

func (c *Channel) TestConnection(ctx context.Context) error

Jump to

Keyboard shortcuts

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