Friday, October 27, 2006 - 21:38
Written by

Another feature that we worked on this week was integrating the "standard" version of PayPal as an additional payment option for CiviContribute. We waited for quite a few months for PayPal (or Google) to release a nice web 2.0 api for subscriptions / recurring transactions, but that did not seem to be happening. So we took the plunge and decided to implement PayPal Web Standards as the first step towards implementing PayPal Subscriptions (basically recurring donations)

PayPal has done an incredible job of documenting their API's and making the integration fairly easy. It helped that the Drupal e-commerce package has this feature, so we could peek into their code base and figure out how to do a few things. Getting a system up and working using the sandbox makes development so much easier, since the sandbox behaves identically to the live system. I was pleasantly surprised to see that we did not have to write a lot of code for this case, but primarily had to rearrange and cleanup the existing code to handle the synchronous (SOAP api) vs the asynchronous (IPN) implementation.

There was a discussion on the mailing list about providing support for other payment processors. We spend a significant amount of time in documenting, testing and making sure the design and implementation is general enough that folks can use it seamlessly. Unfortunately all the payment processors follow slightly different protocols (PayPal has 3 different ways!) with slightly different naming conventions for the same variable, different sandbox and testing procedures. We need to spend a significant amount of time for each processor, i estimate this to be approx 20-40 hours (depending on the wierdness of the processor protocol and how closely it fits one of our already implemented models). As an open source project, we do rely on the community to scratch some of their own itch, and we hope that implementing a transaction processor is a nice first step


Hello there,


My company ( has contributed to the ec_recurring.module development (developed by Synerger) and we have just finished integration/extension of the module to accept recurring payments.

We are now extending the paypal IPN module to integrate with this module, I think we are coding the same module... (paypal.module) isn't it?


We'll have recurring payment support for paypal IPN in CiviCRM v1.6. Most of the code has already been written and we hope to test and finalize it in the next few days. You can borrow ideas from the code at: