Documentation ¶
Index ¶
- Constants
- type IStripe
- type Stripe
- func (s *Stripe) CancelSubscription(subscriptionID string, ...) (*stripe.Subscription, error)
- func (s *Stripe) ConstructWebhookEvent(reqBody []byte, signature string, webhookKey string) (stripe.Event, error)
- func (s *Stripe) CreateAccount(accountParams *stripe.AccountParams) (*stripe.Account, error)
- func (s *Stripe) CreateAccountLink(accountLinkParams *stripe.AccountLinkParams) (*stripe.AccountLink, error)
- func (s *Stripe) CreateBillingPortalSession(billingPortalSessionParams *stripe.BillingPortalSessionParams) (*stripe.BillingPortalSession, error)
- func (s *Stripe) CreateCheckoutSession(checkoutSessionParams *stripe.CheckoutSessionParams) (*stripe.CheckoutSession, error)
- func (s *Stripe) CreateCustomer(customerParams *stripe.CustomerParams) (*stripe.Customer, error)
- func (s *Stripe) CreatePaymentIntentMultiparty(paymentIntentParams *stripe.PaymentIntentParams, linkedAccountID string) (*stripe.PaymentIntent, error)
- func (s *Stripe) CreateSetupIntent(setupIntentParams *stripe.SetupIntentParams) (*stripe.SetupIntent, error)
- func (s *Stripe) CreateSubscription(subscriptionParams *stripe.SubscriptionParams) (*stripe.Subscription, error)
- func (s *Stripe) GetAccount(accountID string, params *stripe.AccountParams) (*stripe.Account, error)
- func (s *Stripe) GetSubscription(subscriptionID string, params *stripe.SubscriptionParams) (*stripe.Subscription, error)
- func (s *Stripe) NewCheckoutSession(paymentMethods []string, mode, successURL, CancelURL string, ...) *stripe.CheckoutSession
- func (s *Stripe) UpdateCustomer(customerID string, customerParams *stripe.CustomerParams) (*stripe.Customer, error)
- func (s *Stripe) UpdateSubscription(subscriptionID string, subscriptionParams *stripe.SubscriptionParams) (*stripe.Subscription, error)
Constants ¶
View Source
const Env = "env"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IStripe ¶
type IStripe interface { CreateAccount(accountParams *stripe.AccountParams) (*stripe.Account, error) GetAccount(accountID string, accountParams *stripe.AccountParams) (*stripe.Account, error) CreateCustomer(customerParams *stripe.CustomerParams) (*stripe.Customer, error) UpdateCustomer(customerID string, customerParams *stripe.CustomerParams) (*stripe.Customer, error) CreateCheckoutSession(checkoutSessionParams *stripe.CheckoutSessionParams) (*stripe.CheckoutSession, error) GetSubscription(subscriptionID string, subscriptionParams *stripe.SubscriptionParams) (*stripe.Subscription, error) CreateSubscription(subscriptionParams *stripe.SubscriptionParams) (*stripe.Subscription, error) UpdateSubscription(subscriptionID string, subscriptionParams *stripe.SubscriptionParams) (*stripe.Subscription, error) CancelSubscription(subscriptionID string, subscriptionCancelParams *stripe.SubscriptionCancelParams) (*stripe.Subscription, error) CreateSetupIntent(setupIntentParams *stripe.SetupIntentParams) (*stripe.SetupIntent, error) CreateBillingPortalSession(billingPortalSessionParams *stripe.BillingPortalSessionParams) (*stripe.BillingPortalSession, error) CreateAccountLink(accountLinkParams *stripe.AccountLinkParams) (*stripe.AccountLink, error) CreatePaymentIntentMultiparty(paymentIntentParams *stripe.PaymentIntentParams, linkedAccountID string) (*stripe.PaymentIntent, error) ConstructWebhookEvent(reqBody []byte, signature string, webhookKey string) (stripe.Event, error) NewCheckoutSession(paymentMethods []string, mode, successURL, CancelURL string, lineItems []*stripe.CheckoutSessionLineItemParams, discounts []*stripe.CheckoutSessionDiscountParams) *stripe.CheckoutSession }
type Stripe ¶
type Stripe struct {
// contains filtered or unexported fields
}
func (*Stripe) CancelSubscription ¶ added in v1.0.69
func (*Stripe) ConstructWebhookEvent ¶
func (*Stripe) CreateAccount ¶ added in v1.0.56
func (*Stripe) CreateAccountLink ¶ added in v1.0.56
func (*Stripe) CreateBillingPortalSession ¶ added in v1.0.65
func (*Stripe) CreateCheckoutSession ¶ added in v1.0.65
func (*Stripe) CreateCustomer ¶ added in v1.0.64
func (*Stripe) CreatePaymentIntentMultiparty ¶ added in v1.0.56
func (*Stripe) CreateSetupIntent ¶ added in v1.0.70
func (*Stripe) CreateSubscription ¶ added in v1.0.69
func (*Stripe) GetAccount ¶ added in v1.0.97
func (*Stripe) GetSubscription ¶ added in v1.0.76
func (*Stripe) NewCheckoutSession ¶
func (*Stripe) UpdateCustomer ¶ added in v1.0.71
func (*Stripe) UpdateSubscription ¶ added in v1.0.69
Click to show internal directories.
Click to hide internal directories.