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) ChannelConfig() app.ChannelConfigInfo
- func (c *Channel) CreateCheckout(ctx context.Context, order domain.Order, successURL, cancelURL string) (domain.CheckoutSession, error)
- 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) ChannelConfig ¶
func (c *Channel) ChannelConfig() app.ChannelConfigInfo
func (*Channel) CreateCheckout ¶
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.