What a coincidence, Massimo. I was just going to start working on Stripe integration today.
Matt On Nov 13, 9:28 pm, Massimo Di Pierro <[email protected]> wrote: > I added > > gluon/contrib/stripe.py > > it provide a minimalist support for stripe.com payment processing > > 1) get an account with stripe.com > 2) activate by giving them your bank account info > 3) get a key (looks like a t9uy97gg787yuUYuyf878fljhfuy67) > 4) in web2py: > > from gluon.contrib.stripe import Stripe > key = 'your key' > > d=Stripe(key).charge(amount=100,card_number='...',card_exp_month='...',card > _exp_year='...',card_cvc_check='...',description='...') > print 'charged',d['paid'] > s = Stripe(key).check(d[u'id']) > print 'paid',s['paid'],s['amount'] ,s['currency'] > s = Stripe(key).refund(d[u'id']) > print 'refunded',s['refunded'] > > works out of the box. No fix costs. You can accept credit cards and > they take a 3% cut. > > They provide their own Python API with more functionalities but I > found I do not need more than the above ones (charge, check, refund).

