6

Could anybody recommend a up-to-date class (or payment system) for handling paypal recurring payments with PHP?

Thank you!


UPDATE: I ended up using the PaypalNVP class by Peter Reisinger. Unfortunately, that was a very long time ago and I can't seem to locate it online (the readme and class files had no URL - just the name). If you can find it, that's a great class and I highly recommend it.

hakre
  • 193,403
  • 52
  • 435
  • 836
Yuval Karmi
  • 26,277
  • 39
  • 124
  • 175

5 Answers5

6

If you have the freedom to pick a gateway, pick one that provides recurring billing services and APIs to us them. I know authorize.net does.

You really, really, really, don't want to store credit card information. Really.

If you want to do a "save my information" kind of thing, find a vendor that supports storing the card details for you. Braintree does this, and I'm sure other vendors do as well.

timdev
  • 61,857
  • 6
  • 82
  • 92
  • 2
    Braintree also provides a PHP library: http://bit.ly/braintree-php . Disclosure: I work for Braintree. – dan-manges Mar 01 '10 at 22:04
  • I'm just picking the answer with the most up-votes. See my update for what I actually ended up using. Thanks for the answer. – Yuval Karmi Mar 10 '10 at 05:10
3

Just in case you are still interested in one. This one is working really great and extremely easy to implement:

http://www.micahcarrick.com/04-19-2005/php-paypal-ipn-integration-class.html

Franz
  • 11,353
  • 8
  • 48
  • 70
2

I published a class that really simplifies using the Paypal API, you can check it out over on Binpress. I just recently added recurring payments support

Eran Galperin
  • 86,251
  • 24
  • 115
  • 132
1

Paypal provides a very nice code snippet for processing paypal transactions, then it's just a matter of setting up a cron job that pulls from a DB what transactions to process.

Myles
  • 20,860
  • 4
  • 28
  • 37
  • Would I have to store CC information the DB? Could you please provide a link to such snippets? Thank you :) – Yuval Karmi Nov 04 '09 at 21:42
  • You would have to store credit card information for a recurring payment like that, unless the paypal API now offers something like that, but it didn't last I was using it. Here's the link you asked for https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/library_code . – Myles Nov 04 '09 at 21:54
1

PHP Payment Library for Paypal, Authorize.net and 2Checkout:

http://www.phpfour.com/blog/2009/02/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/

Radek
  • 3,913
  • 3
  • 42
  • 37
  • "basic usage only and do not contain options for recurring payments" - I am looking for a recurring payments supporting class – Yuval Karmi Nov 09 '09 at 23:47