Hello, I am posed with the following problem. I wonder could anybody help? In order to be able to Authorise Creditcard payments automatically, I wish to be able to 'post' the shopcarts "Total" value eg. $100.00 to the 'ePDQ Merchant Interface' via a form.
How might I get this value ? Is it stored anywhere, perhaps in a variable of somesort?
At present, the storeowner must process the credit card number or other payment information manually.
The order total can be accessed via a global variable in the uShop CGI script called:
This variable and other common values/variables are listed near the top of the ushop-lib.pl script.
In regard to POSTing credit card and other information to your 3rd Pary Payment Processing system, you will probably want to look into modifying the "display_credit_card_form" subroutine which is located in the ushop-lib.pl script. Hidden parameter names and other form field names would need to be changed to what your external payment processing system needs.... along with the URL to which that form is posted. You may then need to modify the "complete_order" subroutine in the ushop.pl script if you want to have uShop receive a response back from the payment processing system.
RELATING TO USHOP 2.X
Oh. With the old uShop 2.x, the order total can be accessed via a global variable in the ushop_cgiscript.pl file called:
Bill, thank you for your prompt, and helpful reply. It is much appreciated,...at least I now know 'it' is possible, and understand where to start !