Skip to content

Instantly share code, notes, and snippets.

@matthewarkin
Created May 29, 2014 23:36
Show Gist options
  • Save matthewarkin/43e7d4469973567528e4 to your computer and use it in GitHub Desktop.
Save matthewarkin/43e7d4469973567528e4 to your computer and use it in GitHub Desktop.
Stripe token test
#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