Closed (fixed)
Project:
Pay
Version:
6.x-1.0-alpha4
Component:
Code
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Sep 2010 at 20:45 UTC
Updated:
6 Oct 2010 at 17:10 UTC
Just stumbled across this module. I've been using PGAPI (http://drupal.org/project/pgapi) for a couple of years now, and contributed a Moneris gateway to it. Just curious what advantages Pay has over PGAPI?
Comments
Comment #1
allie mickaPay is both older - and newer! It has been in the works since 2006, but only the latest revision is really worth using. It has been a challenge to figure out the best place for a payment module to come into the transaction.
If the payment module "knows too much" about the transaction (e.g. product quantities, invoice line items or other amounts), then it's no longer a payment module - it's a shopping cart! And it comes with all of the extra complexity that a shopping cart comes with, even though you may not need that at all.
On the flip-side, if a payment module "knows too little", then it's really just a yes-or-no engine for payments. This is still useful, because any
In the middle of the spectrum, pay expects to know:
This is much less complex than any cart system, which also includes the process of deciding how much the transaction should be, which items it's for, and whether they're available. In a perfect world such a cart system would make these decisions and 'hand off' a pay_transaction to pay for the rest of the workflow.
It's also much more complex than PGAPI, which only stores one running list of payment attempts and whether they're successful. It is the job of the developer using PGAPI to write all of the business logic that surrounds the rest of that transaction. PGAPI's approach in this regard is a logical one, because you can do anything you want with its yea/nay responses.
However, in my opinion, there's a lot of duplication in what you want to do with a payment status. By tracking all payments, "no matter what for", in one place, you can: