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

1

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

1
2
3
## Not run: stripe_create_card_token("sk_test_BQokikJOvBiI2HlWgH4olfQ2",
list(card=list(number="4242424242424242", exp_month="03", exp_year="2018")))
## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.