PHP Paypal Class
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 i开发者_C百科t, that's a great class and I highly recommend it.
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.
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
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
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.
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/
精彩评论