Documentation
¶
Index ¶
- type Channel
- func (c *Channel) CancelCheckout(ctx context.Context, sessionRef string) error
- func (c *Channel) CancelSubscription(ctx context.Context, providerSubID string) error
- func (c *Channel) Capabilities() app.ChannelCaps
- func (c *Channel) ChannelConfig() app.ChannelConfigInfo
- func (c *Channel) ConfigSchema() []app.FieldSpec
- func (c *Channel) CreateCheckout(ctx context.Context, req app.CheckoutRequest) (domain.CheckoutSession, error)
- func (c *Channel) EnvProvidedKeys() []string
- func (c *Channel) Name() string
- func (c *Channel) ParseWebhook(ctx context.Context, req app.WebhookRequest) (domain.PaymentEvent, error)
- func (c *Channel) TestConnection(ctx context.Context) error
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 (*Channel) CancelCheckout ¶
func (*Channel) CancelSubscription ¶
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
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
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) ParseWebhook ¶
func (c *Channel) ParseWebhook(ctx context.Context, req app.WebhookRequest) (domain.PaymentEvent, error)
Click to show internal directories.
Click to hide internal directories.