roldahayes Posted July 10, 2009 Share Posted July 10, 2009 Hi, Im integrating Barclays EPDQ into a website and am coming unstuck with generating an order numer for it. At the moment, the code for the order id is: $params.="&oid=123"; So when the item is payed for, the order number is "123" Is there a simple way for the page to generate a new order ID everytime the button is clicked? Link to comment https://forums.phpfreaks.com/topic/165467-create-random-order-number-for-epdq-payments/ Share on other sites More sharing options...
Jibberish Posted July 10, 2009 Share Posted July 10, 2009 <?php $params.= "&oid=" . uniqid(); ?> Link to comment https://forums.phpfreaks.com/topic/165467-create-random-order-number-for-epdq-payments/#findComment-872698 Share on other sites More sharing options...
roldahayes Posted July 10, 2009 Author Share Posted July 10, 2009 THanks for that! works well. Now, if I wanted to take this a step further, would it be possible to code a buy button with a set price, to jump to this page where the line $params.="&total=150.00"; could be automatically adjusted? Hope that makes sense! Link to comment https://forums.phpfreaks.com/topic/165467-create-random-order-number-for-epdq-payments/#findComment-872702 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.