Documentation ¶
Overview ¶
package charge provides the /charges APIs
Index ¶
- func Capture(id string, params *CaptureParams) (*Charge, error)
- func Create(params *ChargeParams) (*Charge, error)
- func Get(id string, params *ChargeParams) (*Charge, error)
- func List(params *ChargeListParams) *ChargeIter
- func RefundCharge(params *RefundParams) (*Refund, error)
- func Update(id string, params *ChargeParams) (*Charge, error)
- type Client
- func (c Client) Capture(id string, params *CaptureParams) (*Charge, error)
- func (c Client) Create(params *ChargeParams) (*Charge, error)
- func (c Client) Get(id string, params *ChargeParams) (*Charge, error)
- func (c Client) List(params *ChargeListParams) *ChargeIter
- func (c Client) Refund(params *RefundParams) (*Refund, error)
- func (c Client) Update(id string, params *ChargeParams) (*Charge, error)
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 Create ¶
func Create(params *ChargeParams) (*Charge, error)
Create POSTs new charges. For more details see https://stripe.com/docs/api#create_charge.
func Get ¶
Get returns the details of a charge. For more details see https://stripe.com/docs/api#retrieve_charge.
func List ¶
func List(params *ChargeListParams) *ChargeIter
List returns a list of charges. For more details see https://stripe.com/docs/api#list_charges.
func RefundCharge ¶
func RefundCharge(params *RefundParams) (*Refund, error)
RefundCharge refunds a charge previously created. For more details see https://stripe.com/docs/api#refund_charge.
func Update ¶
Update updates a charge's properties. For more details see https://stripe.com/docs/api#update_charge.