Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 09-18-2004 06:18:36

chris61
Member
Registered: 09-17-2004
Posts: 16

Passing Data To Secure Form

Hi, i'm new to this but learning fast ( i hope).

I'm trying to pass the item/product that a customer has in the cart through to the secure forms on the payment screen. Currently data like 'transaction amount' 'shipping charge' 'card holders name' 'address' etc are passed over.

But i would like to be able to pass abit more like info about the order like 'product name' 'quantity' 'price' etc.

Is this possible? sorry if this has come up else where in the forum, i hunted high and low but couldn't find anyinfo.

thanks in advance.

(sorry i'm using 5.1, but have posted this in the wrong place)

Chris

Offline

 

#2 09-18-2004 14:43:55

TheThinker
Member
From: Salt Lake City, Utah
Registered: 06-16-2004
Posts: 535
Website

Re: Passing Data To Secure Form

Chris,

Once the user has entered the buyer workflow, the product info is stored in the cart, not in any form vars.  Just out of curiousity, what are you planning on using the product vars for?


Regards,
Eric

Offline

 

#3 09-18-2004 20:26:04

chris61
Member
Registered: 09-17-2004
Posts: 16

Re: Passing Data To Secure Form

I'm trying to get the line items, descriptions, price and quantity etc over to be displayed on the secure forms as well as the default stuff. currently the code looks like this

<INPUT TYPE="HIDDEN" NAME="transactionamount" VALUE="(CGIVAR)tracking_total(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="shippingcharge" VALUE="(CGIVAR)tracking_shippingtotal(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="transactiontax" VALUE="(CGIVAR)tracking_countrytax(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="cardholdersname" VALUE="(CGIVAR)tracking_firstname(/CGIVAR) (CGIVAR)tracking_lastname(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="address" VALUE="(CGIVAR)tracking_addressone(/CGIVAR) (CGIVAR)tracking_addresstwo(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="postcode" VALUE="(CGIVAR)tracking_zip(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="telephone" VALUE="(CGIVAR)tracking_phone(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="cardholdersemail" VALUE="(CGIVAR)tracking_email(/CGIVAR)">


and i would like to get the cart list over aswell.
I'm using secure-hosting for my payments gateway.

thanks

Chris

Offline

 

#4 09-20-2004 11:52:29

chris61
Member
Registered: 09-17-2004
Posts: 16

Re: Passing Data To Secure Form

I have moded my 'ste_gw_secure_host.txt' file to contain this code


(CGIGET TYPE="ELEMENT" VALUE="ste_strhd_payinfo")<BR>

Please click the 'Submit' button to be transfered to our secure payments server.<BR><BR>

<BR><BR><BR>

<FORM METHOD="POST" ACTION="https://www.secure-server-hosting.com/secutran/secuitems.php">

<!-- Client Ref No:- -->
<input type="hidden" name="shreference" value="SH******">
<!-- Client Check Code: -->
<input type="hidden" name="checkcode" value="******">
<!-- ### -->
<INPUT TYPE="HIDDEN" NAME="ccporderno" VALUE="(CGIVAR)tracking_id(/CGIVAR)">

<input type="hidden" name="filename" value="SH******/sslform.htm">

<INPUT TYPE="HIDDEN" NAME="itemcode" VALUE="(CGIVAR)tracking_(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="itemdesc" VALUE="(CGIVAR)cart_prodname(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="itemquan" VALUE="(CGIVAR)cart_prodquantity(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="itempric" VALUE="(CGIVAR)cart_amtprod(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="itemtotal" VALUE="(CGIVAR)tracking_subtotal(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="transactionamount" VALUE="(CGIVAR)tracking_total(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="shippingcharge" VALUE="(CGIVAR)tracking_shippingtotal(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="transactiontax" VALUE="(CGIVAR)tracking_countrytax(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="cardholdersname" VALUE="(CGIVAR)tracking_firstname(/CGIVAR) (CGIVAR)tracking_lastname(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="address" VALUE="(CGIVAR)tracking_addressone(/CGIVAR) (CGIVAR)tracking_addresstwo(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="postcode" VALUE="(CGIVAR)tracking_zip(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="telephone" VALUE="(CGIVAR)tracking_phone(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="cardholdersemail" VALUE="(CGIVAR)tracking_email(/CGIVAR)">

<CENTER>

<INPUT TYPE="IMAGE" SRC="(CGIVAR)images_path(/CGIVAR)/button/submit_submit.gif" WIDTH="(CGIVAR)site_button_image_width(/CGIVAR)" HEIGHT="(CGIVAR)site_button_image_height(/CGIVAR)" BORDER="0" VALUE="submit"> <A HREF="(CGIVAR)common_url(/CGIVAR)&pg=cancel"><IMG SRC="(CGIVAR)images_path(/CGIVAR)/button/submit_cancel.gif" WIDTH="(CGIVAR)site_button_image_width(/CGIVAR)" HEIGHT="(CGIVAR)site_button_image_height(/CGIVAR)" BORDER="0"></A>

</FORM>

But it still doesn't pull in the required line items from the cart.
any body got any ideas or have experienced this.

Additionally i'm not sure what variable to call to get teh 'itemcode' which i think is refered to as 'product number'.

Cheers

Chris

Offline

 

#5 09-24-2004 12:50:54

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19850
Website

Re: Passing Data To Secure Form

That data is not available at that point to your form.  Instead use this:

Code:


<INPUT TYPE="HIDDEN" NAME="itemcode" VALUE="(CGIVAR)tracking_id(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="itemdesc" VALUE="Online Order">

<INPUT TYPE="HIDDEN" NAME="itemquan" VALUE="1">

<INPUT TYPE="HIDDEN" NAME="itempric" VALUE="(CGIVAR)tracking_total(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="itemtotal" VALUE="(CGIVAR)tracking_total(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="transactionamount" VALUE="(CGIVAR)tracking_total(/CGIVAR)">



Nick Hendler

Offline

 

Board footer