Created
May 29, 2014 23:36
-
-
Save matthewarkin/43e7d4469973567528e4 to your computer and use it in GitHub Desktop.
Stripe token test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Create a Card Token | |
curl https://api.stripe.com/v1/tokens \ | |
-u [private key]: \ | |
-d "card[number]=4242424242424242" \ | |
-d "card[exp_month]=12" \ | |
-d "card[exp_year]=2015" \ | |
-d "card[cvc]=123" | |
curl https://api.stripe.com/v1/charges \ | |
-u [private key]: \ | |
-d amount=400 \ | |
-d currency=usd \ | |
-d card=[token from response above] \ | |
-d "description=Charge for [email protected]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment