stripe_create_card: Add a credit card to Stripe.

Description Usage Arguments Value Examples

Description

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

Usage

1
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

1
2
3
4
5
6
7
## 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)

Gastrograph/RStripe documentation built on May 6, 2019, 5:33 p.m.