Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
6 lines (5 sloc) 292 Bytes
import stripe
stripe.api_key = '26OjYWkUnwDegILl9ZNVbefRjRboRSio'
print "Attempting charge..."
resp = stripe.Charge.execute(amount=200, currency='usd', card={'number' : '4242424242424242', 'exp_month' : 10, 'exp_year' : 2014}, description='customer@gmail.com')
print 'Success: %r' % (resp, )
Something went wrong with that request. Please try again.