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) CreateRefundMultiparty(refundParams *stripe.RefundParams, linkedAccountID string) (*stripe.Refund, 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) GetPaymentIntent(paymentIntentID string, paymentIntentParams *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
- func (s *Stripe) GetSubscription(subscriptionID string, params *stripe.SubscriptionParams) (*stripe.Subscription, error)
- func (s *Stripe) NewCheckoutSession(paymentMethods []string, mode string, successURL string, CancelURL string, ...) *stripe.CheckoutSession
- func (s *Stripe) UpdateAccount(accountID string, accountParams *stripe.AccountParams) (*stripe.Account, error)
- 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)
UpdateAccount(accountID string, 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)
GetPaymentIntent(paymentIntentID string, paymentIntentParams *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
CreatePaymentIntentMultiparty(paymentIntentParams *stripe.PaymentIntentParams, linkedAccountID string) (*stripe.PaymentIntent, error)
CreateRefundMultiparty(refundParams *stripe.RefundParams, linkedAccountID string) (*stripe.Refund, error)
ConstructWebhookEvent(reqBody []byte, signature string, webhookKey string) (stripe.Event, error)
NewCheckoutSession(
paymentMethods []string,
mode string,
successURL string,
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 (s *Stripe) CancelSubscription(subscriptionID string, subscriptionCancelParams *stripe.SubscriptionCancelParams) (*stripe.Subscription, error)
func (*Stripe) ConstructWebhookEvent ¶
func (*Stripe) CreateAccount ¶ added in v1.0.56
func (*Stripe) CreateAccountLink ¶ added in v1.0.56
func (s *Stripe) CreateAccountLink(accountLinkParams *stripe.AccountLinkParams) (*stripe.AccountLink, error)
func (*Stripe) CreateBillingPortalSession ¶ added in v1.0.65
func (s *Stripe) CreateBillingPortalSession(billingPortalSessionParams *stripe.BillingPortalSessionParams) (*stripe.BillingPortalSession, error)
func (*Stripe) CreateCheckoutSession ¶ added in v1.0.65
func (s *Stripe) CreateCheckoutSession(checkoutSessionParams *stripe.CheckoutSessionParams) (*stripe.CheckoutSession, error)
func (*Stripe) CreateCustomer ¶ added in v1.0.64
func (*Stripe) CreatePaymentIntentMultiparty ¶ added in v1.0.56
func (s *Stripe) CreatePaymentIntentMultiparty( paymentIntentParams *stripe.PaymentIntentParams, linkedAccountID string, ) (*stripe.PaymentIntent, error)
func (*Stripe) CreateRefundMultiparty ¶ added in v1.0.99
func (*Stripe) CreateSetupIntent ¶ added in v1.0.70
func (s *Stripe) CreateSetupIntent(setupIntentParams *stripe.SetupIntentParams) (*stripe.SetupIntent, error)
func (*Stripe) CreateSubscription ¶ added in v1.0.69
func (s *Stripe) CreateSubscription(subscriptionParams *stripe.SubscriptionParams) (*stripe.Subscription, error)
func (*Stripe) GetAccount ¶ added in v1.0.97
func (*Stripe) GetPaymentIntent ¶ added in v1.1.0
func (s *Stripe) GetPaymentIntent(paymentIntentID string, paymentIntentParams *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
func (*Stripe) GetSubscription ¶ added in v1.0.76
func (s *Stripe) GetSubscription(subscriptionID string, params *stripe.SubscriptionParams) (*stripe.Subscription, error)
func (*Stripe) NewCheckoutSession ¶
func (s *Stripe) NewCheckoutSession( paymentMethods []string, mode string, successURL string, CancelURL string, lineItems []*stripe.CheckoutSessionLineItemParams, discounts []*stripe.CheckoutSessionDiscountParams, ) *stripe.CheckoutSession
func (*Stripe) UpdateAccount ¶ added in v1.2.42
func (*Stripe) UpdateCustomer ¶ added in v1.0.71
func (*Stripe) UpdateSubscription ¶ added in v1.0.69
func (s *Stripe) UpdateSubscription(subscriptionID string, subscriptionParams *stripe.SubscriptionParams) (*stripe.Subscription, error)
Click to show internal directories.
Click to hide internal directories.