Documentation ¶
Overview ¶
Package charge provides the /charges APIs
Index ¶
- func Capture(id string, params *stripe.CaptureParams) (*stripe.Charge, error)
- func Get(id string, params *stripe.ChargeParams) (*stripe.Charge, error)
- func New(params *stripe.ChargeParams) (*stripe.Charge, error)
- func Update(id string, params *stripe.ChargeParams) (*stripe.Charge, error)
- type Client
- func (c Client) Capture(id string, params *stripe.CaptureParams) (*stripe.Charge, error)
- func (c Client) Get(id string, params *stripe.ChargeParams) (*stripe.Charge, error)
- func (c Client) List(params *stripe.ChargeListParams) *Iter
- func (c Client) New(params *stripe.ChargeParams) (*stripe.Charge, error)
- func (c Client) Update(id string, params *stripe.ChargeParams) (*stripe.Charge, error)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Capture ¶
Capture captures a previously created charge with NoCapture set to true. For more details see https://stripe.com/docs/api#charge_capture.
func Get ¶
Get returns the details of a charge. For more details see https://stripe.com/docs/api#retrieve_charge.
func New ¶
func New(params *stripe.ChargeParams) (*stripe.Charge, error)
New POSTs new charges. For more details see https://stripe.com/docs/api#create_charge.
func Update ¶
Update updates a charge's properties. For more details see https://stripe.com/docs/api#update_charge.
Types ¶
type Iter ¶
Iter is a iterator for list responses.
func List ¶
func List(params *stripe.ChargeListParams) *Iter
List returns a list of charges. For more details see https://stripe.com/docs/api#list_charges.
Click to show internal directories.
Click to hide internal directories.