Documentation ¶
Index ¶
- func Setup(key string) error
- type ChargeData
- type Client
- func (i *Client) Charge(data *ChargeData) (*stripe.Charge, error)
- func (i *Client) CreateCreditCard(token *string, ps PaymentSource) error
- func (i *Client) CreatePaymentSource(paymentType string, token string, ps PaymentSource) error
- func (i *Client) EnsureCustomer() error
- func (i *Client) FetchCustomer() (*stripe.Customer, error)
- type Customer
- type Parent
- type PaymentSource
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChargeData ¶
ChargeData charge data structure
type Client ¶
type Client struct {
Parent Parent
}
Client stripe client data structure
func (*Client) Charge ¶
func (i *Client) Charge(data *ChargeData) (*stripe.Charge, error)
Charge charge provided source with charge params
func (*Client) CreateCreditCard ¶
func (i *Client) CreateCreditCard(token *string, ps PaymentSource) error
CreateCreditCard create credit card payment source
func (*Client) CreatePaymentSource ¶
func (i *Client) CreatePaymentSource(paymentType string, token string, ps PaymentSource) error
CreatePaymentSource create payment source
func (*Client) EnsureCustomer ¶
EnsureCustomer find or create a customer record
type Customer ¶
type Customer struct {
StripeCustomerID *string
}
Customer ...
func (Customer) GetStripeCustomerID ¶
GetStripeCustomerID ...
type Parent ¶
type Parent interface { StripeCustomerDescription() *string GetStripeCustomerID() *string SetStripeCustomerID(*string) error }
Parent parent model interface
type PaymentSource ¶
PaymentSource payment source model interface
Click to show internal directories.
Click to hide internal directories.