Learn R Programming

RStripe (version 0.1)

stripe_update_charge: Update a charge.

Description

Update the information about a charge.

Usage

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

Run this code
## Not run: stripe_update_charge("sk_test_BQokikJOvBiI2HlWgH4olfQ2", 
# "ch_14TLyd2eZvKYlo2CdryxwrF8", list(description="for the item",
# metadata=list(order_id="3453")))## End(Not run)

Run the code above in your browser using DataLab