URL: http://www.uburst.com/cgi-bin/dcforum/dcboard.cgi
Forum: ushp_general_purpose
Thread Number: 403
[ Go back to previous page ]

Original Message
"ushop2 credit card validation"

Posted by Toks Odofin [ukzoite7@aol.com] on at 01:26 PM
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.


Table of contents

Messages in this discussion
"RE: ushop2 credit card validation"
Posted by Bill Weiner on at 05:59 AM
The order total can be accessed via a global variable in the uShop CGI script called:

$totals_total

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.


"RE: ushop2 credit card validation"
Posted by Bill Weiner on at 06:01 AM
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:

$uShop_total


"Cheers."
Posted by Toks Odofin [ukzoite7@aol.com] on at 03:05 PM
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 !

Kind Regards

Toks Odifin
ukzoite7@aol.com