Kristian Lunde

www.klunde.net

Archive for October, 2009

Recurring payments with Paypal and PHP

without comments

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:

  1. [L_BILLINGTYPE0] => RecurringPayments
  2. [L_BILLINGAGREEMENTDESCRIPTION0] => Basic Plan

It is also important to add the “desc” field to the createRecurringPaymentsProfile call.

  1. [DESC] => Basic Plan

Written by Kristian Lunde

October 2nd, 2009 at 9:59 am

Posted in Misc

Get Adobe Flash player