Learn R Programming

RStripe (version 0.1)

stripe_create_card_token: Create a Card Token

Description

Create a card token to be used by other functions. You can use this to create a charge, or to attach to a customer.

Usage

stripe_create_card_token(api_key, args)

Arguments

api_key
Your Stripe API Key
args
A list which must contain card information including
number
required

cvc
required

exp_month
required

exp_year
required

address_city
optional

address_country
optional

address_line1
optional

address_line2
optional

address_state
optional

address_zip
optional

name
optional

customer
optional Customer to attach token to.

Value

A data frame with the new card token info if successful.

Examples

Run this code
## Not run: stripe_create_card_token("sk_test_BQokikJOvBiI2HlWgH4olfQ2",
# list(card=list(number="4242424242424242", exp_month="03", exp_year="2018")))## End(Not run)

Run the code above in your browser using DataLab