4 replies [Last post]
Souvent22@drupal.org's picture
Offline
Joined: 10/17/2007
Juice: 73
Was this information Helpful?

When one does a credit card information, there are 3 things that always come back:
1. Status code
2. PNRef
3. Auth Code

We need to store the PNRef and AuthCode as this would be VERY beneficial in financial records, and for looking up more detailed information about a transaction on a Payment getways backend.

I'm looking for feed back and I'd like to propose a patch to add PNRef and Auth Code to credit card transactions. Thoughts?

- Earnest

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: More Credit Card Info needs to be kept!!

Hmm... I'm not sure what the best thing to do here is. I agree that the data needs to be stored somehow. The problem is not every payment gateway will have the same needs or use the same terms.

There is a text field in uc_payment_receipts where this data can be stored serialized as need be. I don't know that that's the best way to be matching up CC data, auths, etc. Part of the problem is a row is created here only when an actual payment is made... I suppose a module can manually add a $0.00 payment receipt and put in the data array a key/value denoting it as a pre-authorization or something.

It seems like this would be just up to each gateway module to figure out, but that's not the most developer friendly way to handle this.

Souvent22@drupal.org's picture
Offline
Joined: 10/17/2007
Juice: 73
Data

Hm, but a PNREF and AuthCode are standard to every gateway (AFAIK). It has to do with the financial networks and clearing houses. Every transaction has a PNREF at least and an authcode. Again, if you are using a getway and a merchant account.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Data

I dig... where would you propose the data get stored? If it's stored in uc_payment_credit, what about orders where more than one transaction is made. Would the place for it to go be in the data field of the receipts table?

Souvent22@drupal.org's picture
Offline
Joined: 10/17/2007
Juice: 73
Re: Re: Data

Yes;

I tried to look at see how to put information in the data field of the order table, but I dont' see it anywhere in the documentation. Could you point me in the right direction? I'd really like to get that information captured.