Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) CreateCustomer(user *User) (*stripe.Customer, error)
- func (c *Client) CreatePaymentSheet(order *Order, user *User) (*PaymentSheet, error)
- func (c *Client) CreateWebhookEndpoint(url string) (*stripe.WebhookEndpoint, error)
- func (c *Client) ParseNotify(payload []byte, signature string) (*NotifyResult, error)
- func (c *Client) QueryOrderStatus(orderNo string) (bool, error)
- func (c *Client) RetrievePaymentMethod(id string) (*stripe.PaymentMethod, error)
- func (c *Client) SearchStripeCustomer(user *User) (*stripe.Customer, error)
- type Config
- type NotifyResult
- type Order
- type PaymentSheet
- type User
Constants ¶
View Source
const APIVersion = "2024-04-10"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Config
}
func (*Client) CreateCustomer ¶
CreateCustomer Create a new Stripe customer
func (*Client) CreatePaymentSheet ¶
func (c *Client) CreatePaymentSheet(order *Order, user *User) (*PaymentSheet, error)
func (*Client) CreateWebhookEndpoint ¶
func (c *Client) CreateWebhookEndpoint(url string) (*stripe.WebhookEndpoint, error)
CreateWebhookEndpoint 创建 webhook endpoint
func (*Client) ParseNotify ¶
func (c *Client) ParseNotify(payload []byte, signature string) (*NotifyResult, error)
ParseNotify
func (*Client) QueryOrderStatus ¶
QueryOrderStatus Query the status of the order
func (*Client) RetrievePaymentMethod ¶
func (c *Client) RetrievePaymentMethod(id string) (*stripe.PaymentMethod, error)
RetrievePaymentMethod 查询支付方式
type NotifyResult ¶
type PaymentSheet ¶
Click to show internal directories.
Click to hide internal directories.