Is there a simple PHP payment library that can handle multiple payment gateways? I don't mind processing the payment at the payment gateway website rather than on my site and don't want to store CC information in my site, but I want the flexibility choosing the gateway without changing the code (or little change).
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
Kohana Payment Module supports all the following gateways:
I think what your looking for is an API for Paypal and similar sites.
I'd think I have to mention payum. That may look a bit complicated at a first glance but give it a try!
It has well thought design, solves many common payment related issues (storing and securing data, notifications, framework agnostic). Also it supports many payments out of the box (each shipped with a doc) and provide integration with all favorite frameworks.
This question might be old, but is still very relevant, and now, in 2013, the clear answer is:
OMNIPAY, #1 on GitHub: https://github.com/adrianmacneil/omnipay
Omnipay is professionally unit tested, available via composer and has an excellent structure. Easy to use, clean and highly professional. Offers payment gateways for
You probably looking a library similar to Active Merchant for ruby.
There is a php port at github
Upon quick googling, http://www.phpfour.com/blog/2009/02/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/ looks like it might work.