Documentation ¶
Index ¶
- type Client
- func (c *Client) AddProduct(sku, currency string, amount float64) (string, error)
- func (c *Client) ChargeCustomer(priceID, customerID string) (string, error)
- func (c *Client) CreateCardToken(cardNmuber, expMonth, expYear, cvc string) (string, error)
- func (c *Client) CreateCustomer(email, cardToken, userName string) (string, error)
- func (c *Client) UpdateCustomer(customerID, cardToken string) error
- type Stripe
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
APIKey string
}
func (*Client) AddProduct ¶
func (*Client) ChargeCustomer ¶
func (*Client) CreateCardToken ¶
func (*Client) CreateCustomer ¶
func (*Client) UpdateCustomer ¶
type Stripe ¶
type Stripe interface { AddProduct(sku, currency string, amount float64) (string, error) ChargeCustomer(priceID, customerID string) (string, error) CreateCardToken(cardNmuber, expMonth, expYear, cvc string) (string, error) CreateCustomer(email, cardToken, userName string) (string, error) UpdateCustomer(customerID, cardToken string) error }
Click to show internal directories.
Click to hide internal directories.