Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Order reference number for the bank


andrewfr

Recommended Posts

Posted

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

Posted

which bank is the module for?... somebody may well have a working module.

Posted

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]

Posted

Many thanks for the replies

 

The Bank is the Siam Commercial Bank in Bangkok. I'll try the random number code. It will also need to be posted to the order info DB.

 

Regards,

 

Andrew

  • 9 months later...
Posted

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

[email protected]

Archived

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

×
×
  • Create New...