Recurring payments with Paypal and PHP
I have spent the past few days working with online payment solutions for mysapient. Yesterday I came across a bit of a troublesome issue when setting up recurring payments with paypal. There is no secret that the quality of the paypal documentation varies, so I had some troubles finding any proper information about this issue. Luckily there was a lot of other developers struggling with this same issue.
A quick google search gives you a lot of results about this topic and it can take you a while to get through them all, but at least here is the forum post that helped me getting this solved:
http://www.pdncommunity.com/pdn/board/message?board.id=nvp&view=by_date_ascending&message.id=5463
It seems like the setExpressCheckout needs the following parameters to work properly:
-
[L_BILLINGTYPE0] => RecurringPayments
-
[L_BILLINGAGREEMENTDESCRIPTION0] => Basic Plan
It is also important to add the “desc” field to the createRecurringPaymentsProfile call.
-
[DESC] => Basic Plan