Documentation ¶
Index ¶
- Variables
- func AddCustomerPaymentMethod(cus *stripe.Customer, paymentMethodID string) error
- func CancelPaymentIntent(secretApiKey, id, cancelReason string) (*stripe.PaymentIntent, error)
- func ConfirmPaymentIntent(publicApiKey, returnUrl string, pi *stripe.PaymentIntent) (*stripe.PaymentIntent, error)
- func CreateCustomer(secretApiKey string, c *Customer) (*stripe.Customer, error)
- func CreatePaymentIntent(secretApiKey string, cus *stripe.Customer, amount int64) (*stripe.PaymentIntent, error)
- func FindCustomer(secretApiKey, email string) (*stripe.Customer, error)
- func GetCustomerPaymentMethods(secretApiKey string, cus *stripe.Customer) error
- func GetPaymentMethod(paymentMethodID string) error
- func UpdateCustomer(secretApiKey, id string, c *Customer) (*stripe.Customer, error)
- type Address
- type Customer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AliPayType = "alipay" CaptureMethodAutomatic = "automatic" // Invalid cancellation_reason: must be one of duplicate, fraudulent, requested_by_customer, or abandoned CanceledReasonRequestedByCustomer = "requested_by_customer" )
Functions ¶
func CancelPaymentIntent ¶
func ConfirmPaymentIntent ¶
func CreateCustomer ¶
func CreatePaymentIntent ¶
func FindCustomer ¶
func GetPaymentMethod ¶
func UpdateCustomer ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.