5b72dce Dec 4, 2013
@metcalf @gdb @ebroder @pc
19 lines (14 sloc) 340 Bytes
import stripe
stripe.api_key = 'tGN0bIwXnHdwOa85VABjPdSn8nWY7G7I'
print "Attempting charge..."
resp = stripe.Charge.create(
amount=200,
currency='usd',
card={
'number': '4242424242424242',
'exp_month': 10,
'exp_year': 2014
},
description='customer@gmail.com'
)
print 'Success: %r' % (resp, )