Documentation ¶
Overview ¶
Package charge provides the /charges APIs
Index ¶
- Constants
- func Capture(id string, params *stripe.CaptureParams) (*stripe.Charge, error)
- func CloseDispute(id string) (*stripe.Dispute, error)
- func Get(id string, params *stripe.ChargeParams) (*stripe.Charge, error)
- func MarkFraudulent(id string) (*stripe.Charge, error)
- func MarkSafe(id string) (*stripe.Charge, error)
- func New(params *stripe.ChargeParams) (*stripe.Charge, error)
- func Update(id string, params *stripe.ChargeParams) (*stripe.Charge, error)
- func UpdateDispute(id string, params *stripe.DisputeParams) (*stripe.Dispute, error)
- type Client
- func (c Client) Capture(id string, params *stripe.CaptureParams) (*stripe.Charge, error)
- func (c Client) CloseDispute(id string) (*stripe.Dispute, error)
- func (c Client) Get(id string, params *stripe.ChargeParams) (*stripe.Charge, error)
- func (c Client) List(params *stripe.ChargeListParams) *Iter
- func (c Client) MarkFraudulent(id string) (*stripe.Charge, error)
- func (c Client) MarkSafe(id string) (*stripe.Charge, error)
- func (c Client) New(params *stripe.ChargeParams) (*stripe.Charge, error)
- func (c Client) Update(id string, params *stripe.ChargeParams) (*stripe.Charge, error)
- func (c Client) UpdateDispute(id string, params *stripe.DisputeParams) (*stripe.Dispute, error)
- type Iter
Constants ¶
const ( ReportFraudulent stripe.FraudReport = "fraudulent" ReportSafe stripe.FraudReport = "safe" )
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 CloseDispute ¶
Close dismisses a charge's dispute in the customer's favor. For more details see https://stripe.com/docs/api#close_dispute.
func Get ¶
Get returns the details of a charge. For more details see https://stripe.com/docs/api#retrieve_charge.
func MarkFraudulent ¶
MarkFraudulent reports the charge as fraudulent.
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.
func UpdateDispute ¶
Update updates a charge's dispute. For more details see https://stripe.com/docs/api#update_dispute.
Types ¶
type Client ¶
Client is used to invoke /charges APIs.
func (Client) UpdateDispute ¶
type Iter ¶
Iter is an iterator for lists of Charges. The embedded Iter carries methods with it; see its documentation for details.
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.