Documentation ¶
Overview ¶
Package paymentsource provides the /customers/{customer}/sources APIs
Index ¶
- func Del(id string, params *stripe.PaymentSourceParams) (*stripe.PaymentSource, error)
- func Get(id string, params *stripe.PaymentSourceParams) (*stripe.PaymentSource, error)
- func New(params *stripe.PaymentSourceParams) (*stripe.PaymentSource, error)
- func Update(id string, params *stripe.PaymentSourceParams) (*stripe.PaymentSource, error)
- func Verify(id string, params *stripe.PaymentSourceVerifyParams) (*stripe.PaymentSource, error)
- type Client
- func (c Client) Del(id string, params *stripe.PaymentSourceParams) (*stripe.PaymentSource, error)
- func (c Client) Get(id string, params *stripe.PaymentSourceParams) (*stripe.PaymentSource, error)
- func (c Client) List(listParams *stripe.PaymentSourceListParams) *Iter
- func (c Client) New(params *stripe.PaymentSourceParams) (*stripe.PaymentSource, error)
- func (c Client) Update(id string, params *stripe.PaymentSourceParams) (*stripe.PaymentSource, error)
- func (c Client) Verify(id string, params *stripe.PaymentSourceVerifyParams) (*stripe.PaymentSource, error)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Del ¶
func Del(id string, params *stripe.PaymentSourceParams) (*stripe.PaymentSource, error)
Delete a specified source for a given customer.
func Get ¶
func Get(id string, params *stripe.PaymentSourceParams) (*stripe.PaymentSource, error)
Retrieve a specified source for a given customer.
func New ¶
func New(params *stripe.PaymentSourceParams) (*stripe.PaymentSource, error)
When you create a new credit card, you must specify a customer or recipient on which to create it.
If the card's owner has no default card, then the new card will become the default. However, if the owner already has a default, then it will not change. To change the default, you should [update the customer](https://stripe.com/docs/api#update_customer) to have a new default_source.
func Update ¶
func Update(id string, params *stripe.PaymentSourceParams) (*stripe.PaymentSource, error)
Update a specified source for a given customer.
func Verify ¶
func Verify(id string, params *stripe.PaymentSourceVerifyParams) (*stripe.PaymentSource, error)
Verify verifies a source which is used for bank accounts. Verify a specified bank account for a given customer.
Types ¶
type Client ¶
Client is used to invoke /customers/{customer}/sources APIs.
func (Client) Del ¶
func (c Client) Del(id string, params *stripe.PaymentSourceParams) (*stripe.PaymentSource, error)
Delete a specified source for a given customer.
func (Client) Get ¶
func (c Client) Get(id string, params *stripe.PaymentSourceParams) (*stripe.PaymentSource, error)
Retrieve a specified source for a given customer.
func (Client) List ¶
func (c Client) List(listParams *stripe.PaymentSourceListParams) *Iter
List sources for a specified customer.
func (Client) New ¶
func (c Client) New(params *stripe.PaymentSourceParams) (*stripe.PaymentSource, error)
When you create a new credit card, you must specify a customer or recipient on which to create it.
If the card's owner has no default card, then the new card will become the default. However, if the owner already has a default, then it will not change. To change the default, you should [update the customer](https://stripe.com/docs/api#update_customer) to have a new default_source.
func (Client) Update ¶
func (c Client) Update(id string, params *stripe.PaymentSourceParams) (*stripe.PaymentSource, error)
Update a specified source for a given customer.
func (Client) Verify ¶
func (c Client) Verify(id string, params *stripe.PaymentSourceVerifyParams) (*stripe.PaymentSource, error)
Verify verifies a source which is used for bank accounts. Verify a specified bank account for a given customer.
type Iter ¶
Iter is an iterator for payment sources.
func List ¶
func List(params *stripe.PaymentSourceListParams) *Iter
List sources for a specified customer.
func (*Iter) PaymentSource ¶
func (i *Iter) PaymentSource() *stripe.PaymentSource
PaymentSource returns the payment source which the iterator is currently pointing to.
func (*Iter) PaymentSourceList ¶
func (i *Iter) PaymentSourceList() *stripe.PaymentSourceList
PaymentSourceList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.