For sure, using Stripe is way more easier than I ever seen or used. However, it seems that it is a paid service. So you can do with Requests, for instance, and for free (at least the development part). I did something like that<https://github.com/matheuscas/hackathon_paypal/blob/master/controllers/paypal.py>in PayPal Hackathon in Campus Party Brasil 2014 in São Paulo, Brazil. The code is not good, cuz the invoices are fixed on the code and some parts are in portuguese. But, you can focus on something like this:
def create_recurring_payments_profile(): basic_data = basic_request recurring_payments_data = { 'METHOD':'CreateRecurringPaymentsProfile', 'TOKEN':request.vars['TOKEN'], 'PAYERID':request.vars['PAYERID'], 'PROFILESTARTDATE': request.now, 'DESC': 'Revista Info', 'BILLINGPERIOD': 'Day', 'BILLINGFREQUENCY': '1', 'AMT': 100, 'CURRENCYCODE': 'BRL', 'COUNTRYCODE': 'BR', 'MAXFAILEDPAYMENTS': 3 } basic_data.update(recurring_payments_data) r = requests.get(sandbox, params=basic_data) return dict(details=__response_details_to_dict(r.text)) Worked like a charm. ;) On Monday, March 31, 2014 6:57:14 AM UTC-3, Mika Sjöman wrote: > > Hi > > I wonder if anyone here has implemented recurring payments with Paypal > here with Web2py? Any experience with this and how to implement it? > > We currently charge people for lessons with our teachers, but we would > like to go over to a payment model where we automatically charge the > customers every month. > > Is there a better way of doing this than Paypal? Market is mostly US and > China based. > > Cheers > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.