[PROPOSAL] Payment_Process
| From: | Ian Eure | Date: | Sun, 14 Dec 2003 02:42:50 +0000 |
| Subject: | [PROPOSAL] Payment_Process | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-24395@lists.php.net to get a copy of this message | ||
As previously discussed[1], I am writing a credit card processing framework,
as well as at least one back-end processor. I believe that it would be very
beneficial to have this package be part of PEAR.
Description
=======
This package is intended to allow financial transactions to take place from
PHP. While primarily focused on credit card processing, the ability to
process an electronic funds transfer is also possible.
The front-end is somewhat based on the interface that
Business::OnlinePayment[2] uses. The fields defined in Payment_Process are a
superset of what's available in Business::OnlinePayment.
Each back-end (Processor) handles the communication with a payment gateway.
For example, the 'Dpilink' back-end processes via DPILink, and a
(hypothetical) Authorize.net back-end would process via Authorize.net.
Changing gateways should be as simple as requesting a different back-end when
calling Payment_Process::factory().
Currently, there is a processor for DPILink, as well as a dummy processor for
testing. I'm looking at the possibility of interfacing with
Business::OnlinePayment to support it's gateways, as well as osCommerce.
There is still plenty of work to be done with this package, and I believe that
would best be facilitated by putting it in PEAR's CVS.
The current code is available at
http://www.websprockets.com/~ieure/PEAR/Payment/,
and it's under the PHP
License, 2.02.
[1]: http://marc.theaimsgroup.com/?l=pear-dev&m=107127220002764&w=2
[2]:
http://search.cpan.org/~jasonk/Business-OnlinePayment-2.00/OnlinePayment.pm