Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Order reference number for the bank


andrewfr

Recommended Posts

I am trying to create a purchase module for online cc processing by my bank. They require a reference number to accompany the transaction. It would be convenient to use the order number as generated by osCommerce, but this number is generated after the purchase module kicks in.

 

Can anyone suggest a solution?

 

Thanks in advance,

 

Andrew

Link to comment
Share on other sites

Hi,

It does depend on what module you are using, but if it is a requirement you can add the following code into the module and simply pass it to your provider as a hidden field $uid.

 

$uid = tep_create_random_value(16, 'digits'); // Create a UID

 

This will create a random 16 didgit number on each call of the page ie: 4567865456548563

 

If you want a smaller value simply change the number.... :D

 

Hope this is what you are after.

 

Regards

 

Ed

i-netmedia[/code]

Link to comment
Share on other sites

  • 9 months later...

I'm about to use payment gateway service from SCB(Siam commercial Bank) too, would you please kindly send me your SCB payment module via E-mail?

 

Thank you

poj@thaiavclub.org

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...