Skip to content

Instantly share code, notes, and snippets.

@antoniosilveira
Created August 30, 2012 02:07
Show Gist options
  • Save antoniosilveira/3521677 to your computer and use it in GitHub Desktop.
Save antoniosilveira/3521677 to your computer and use it in GitHub Desktop.
Credit Card Payment example with Stride
>>> import stripe
stripe.api_key = "vtUQeOtUnYr7PGCLQ96Ul4zqpDUO4sOE"
stripe.Charge.create(
amount=400,
currency="usd",
card={
"number": '4242424242424242',
"exp_month": '12',
"exp_year": '2012',
"cvc": '123'
},
description="Charge for [email protected]"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment