Learn R Programming

RStripe (version 0.1)

stripe_create_card: Add a credit card to Stripe.

Description

Add a new credit card to a customer. Set it as default.

Usage

stripe_create_card(api_key, customer_id, args)

Arguments

api_key
Your Stripe API Key
customer_id
The id for the customer you want the credit card added to.
args
A required list of either a token, or a card dictionary. /hrefhttps://stripe.com/docs/api#create_cardmore info here

Value

A data frame with card information

Examples

Run this code
## Not run: stripe_create_card("sk_test_BQokikJOvBiI2HlWgH4olfQ2", "cus_4cb7HNjNSqqV2H", 
# list(card="tok_14SsjM2eZvKYlo2CCtdx2AvO")## End(Not run)

## Not run: stripe_create_card("sk_test_BQokikJOvBiI2HlWgH4olfQ2", "cus_4cb7HNjNSqqV2H", 
# list(card=list(number="4242424242424242", exp_month="03", exp_year="2018")))## End(Not run)

Run the code above in your browser using DataLab