stripe_create_card_token: Create a Card Token

Description Usage Arguments Value Examples

View source: R/tokens.R

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)


RStripe documentation built on May 19, 2017, 8:17 p.m.
Search within the RStripe package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.