Documentation ¶
Index ¶
- Constants
- type EventProcessor
- type Provider
- func (p Provider) CreateCustomer(ctx context.Context, email string, token string) (*paymentprovider.Customer, error)
- func (p Provider) CreateSubscription(ctx context.Context, cust string, seats int) (*paymentprovider.Subscription, error)
- func (p Provider) DeleteSubscription(ctx context.Context, cust string, sub string) error
- func (p Provider) GetEvent(ctx context.Context, eventID string) (*paymentprovider.Event, error)
- func (p Provider) GetSubscription(ctx context.Context, cust string, sub string) (*paymentprovider.Subscription, error)
- func (p Provider) GetSubscriptions(ctx context.Context, cust string) ([]paymentprovider.Subscription, error)
- func (p Provider) Name() string
- func (p Provider) SetBaseURL(u string) error
- func (p Provider) UpdateSubscription(ctx context.Context, cust string, sub string, ...) (*paymentprovider.Subscription, error)
Constants ¶
View Source
const ProviderName = "paddle"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventProcessor ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (Provider) CreateCustomer ¶
func (Provider) CreateSubscription ¶
func (p Provider) CreateSubscription(ctx context.Context, cust string, seats int) (*paymentprovider.Subscription, error)
func (Provider) DeleteSubscription ¶
func (Provider) GetSubscription ¶
func (p Provider) GetSubscription(ctx context.Context, cust string, sub string) (*paymentprovider.Subscription, error)
func (Provider) GetSubscriptions ¶
func (p Provider) GetSubscriptions(ctx context.Context, cust string) ([]paymentprovider.Subscription, error)
func (Provider) SetBaseURL ¶
func (Provider) UpdateSubscription ¶
func (p Provider) UpdateSubscription(ctx context.Context, cust string, sub string, payload paymentprovider.SubscriptionUpdatePayload) (*paymentprovider.Subscription, error)
Click to show internal directories.
Click to hide internal directories.