stripe_update_charge: Update a charge.

Description Usage Arguments Value Examples

View source: R/charges.R

Description

Update the information about a charge.

Usage

1
stripe_update_charge(api_key, charge_id, args)

Arguments

api_key

Your Stripe API Key

charge_id

The identifier of the charge to be updated

args

A list that can include:

metadata

optional A list of metadata to include

description

optional A string to describe it

Value

Returns a charge data frame if succeeded.

Examples

1
2
3
4
## Not run: stripe_update_charge("sk_test_BQokikJOvBiI2HlWgH4olfQ2", 
"ch_14TLyd2eZvKYlo2CdryxwrF8", list(description="for the item",
metadata=list(order_id="3453")))
## End(Not run)

RStripe documentation built on May 2, 2019, 7:45 a.m.