Forums / General Questions / Stardard place for payment references ?

Stardard place for payment references ?

Views: 624

Results 1 to 8 of 8
14 Dec 2011, 7:42 AM
#1
nathanblogs avatar

nathanblogs

New Zenner

Join Date:
Dec 2011
Posts:
4
Plugin Contributions:
0

Stardard place for payment references ?

Hi,

I did a quick search of the forums and couldn't find an answer to my question.

Is there a standard place that payment references are stored in the database ( I have no addons, out of the box zen cart install ), for example looking at the orders table in the database there is a payment_method and payment_module_code, but there doesn't seem to be a reference anywhere?

thanks for any help.

15 Dec 2011, 1:14 AM
#3
nathanblogs avatar

nathanblogs

New Zenner

Join Date:
Dec 2011
Posts:
4
Plugin Contributions:
0

Re: Stardard place for payment references ?

gjh42:

What do you mean by "payment references"?

The unique code that can be used to track down the payment in your payment system.

15 Dec 2011, 8:15 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Stardard place for payment references ?

Each order is assigned an order number. That's a good starting point.
Anything else largely depends on what payment system is used for each payment. So ... what payment module(s) are you using to collect payments in your store?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

16 Dec 2011, 3:00 AM
#5
nathanblogs avatar

nathanblogs

New Zenner

Join Date:
Dec 2011
Posts:
4
Plugin Contributions:
0

Re: Stardard place for payment references ?

DrByte:

Each order is assigned an order number. That's a good starting point.
Anything else largely depends on what payment system is used for each payment. So ... what payment module(s) are you using to collect payments in your store?

I was thinking there might be a central place that stores something like

orderid - the id
paymenttype - paypal, eway, etc
paymentreference - the unquie payment id
paymentsuccess - success

16 Dec 2011, 4:48 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Stardard place for payment references ?

Yes, that information is stored with all the order data.

What exactly are you wishing to do with it? Surely there's a business reason behind why you're asking the question.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Dec 2011, 6:34 AM
#7
nathanblogs avatar

nathanblogs

New Zenner

Join Date:
Dec 2011
Posts:
4
Plugin Contributions:
0

Re: Stardard place for payment references ?

DrByte:

Yes, that information is stored with all the order data.

What exactly are you wishing to do with it? Surely there's a business reason behind why you're asking the question.

Basically we have some code in zen-cart which pushes orders into an inventory system.

I would like to be able to get the payment information and push that data to the inventory system.

I don't see anything in the orders table that looks like a payment reference, all I can see is payment_method and payment_module_code there is order_id but that is of no help to me.

21 Dec 2011, 7:05 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Stardard place for payment references ?

If the payment module received and stored any transaction number data, it likely stored it in the orders_status_history records for that order as part of free-form comment text.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.