Learn R Programming

RStripe (version 0.1)

stripe_update_card: Update a credit card on Stripe.

Description

Update infomration about the billing address for a credit card as well as other fields.

Usage

stripe_update_card(api_key, customer_id, card_id, args)

Arguments

api_key
Your Stripe API Key
customer_id
The id for the customer you want the credit card added to.
card_id
The id for the card you want to update
args
A list that can contain the following
address_city
optional

address_country
optional

address_line1
optional

address_line2
optional

address_state
optional

address_zip
optional

exp_month
optional

exp_year
optional

name
optional

Value

A data frame with card information

Examples

Run this code
## Not run: stripe_update_card("sk_test_BQokikJOvBiI2HlWgH4olfQ2", "cus_4cb7HNjNSqqV2H",
# "card_14TLyd2eZvKYloc2C9PXnfFmi", list(exp_year="04"))## End(Not run)

Run the code above in your browser using DataLab