Documentation
¶
Index ¶
Constants ¶
View Source
const ( InAppPurchaseSuccess = "payment_intent.succeeded" InAppPurchaseFail = "payment_intent.payment_failed" )
View Source
const ( CheckoutSeesionPaid = "paid" // 已支付 CheckoutSeesionNoPaymentRequired = "no_payment_required" // 无需支付 CheckoutSeesionUnpaid = "unpaid" // 未支付 )
View Source
const ( RedirectTypeRedirect = "redirect" RedirectTypeHostedConfirmation = "hosted_confirmation" )
View Source
const (
CheckoutSeesionCompleted = "checkout.session.completed"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildPaymentLinkConfig ¶
type Option ¶
type Option func(*Options)
func WithRedirectDomain ¶ added in v0.5.19
func WithRedirectType ¶ added in v0.5.18
func WithSecretKey ¶
func WithWebhookSecret ¶
type Stripe ¶
type Stripe struct {
// contains filtered or unexported fields
}
func (*Stripe) BuildPaymentLinkURL ¶
func (s *Stripe) BuildPaymentLinkURL(conf *BuildPaymentLinkConfig) (string, error)
Click to show internal directories.
Click to hide internal directories.