stripe

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 12 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) ChannelConfig

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

func (*Channel) CreateCheckout

func (c *Channel) CreateCheckout(ctx context.Context, order domain.Order, successURL, cancelURL string) (domain.CheckoutSession, error)

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