Web Hosting Talk







View Full Version : Changing Form


rocrom
11-20-2004, 11:45 AM
Hi Everyone

I have a from that was set up to use Paysystem, we know what happen to them.

I would like to us the same form and just use it for 2checkout. i am not sure what values to add. I cut and paste the current info for paysystem. maybe someone can tell me what to change to use it for 2checkout

elseif ($payment == "PaySystems") {
// create paysystems form

echo '
<form method=post action="https://secure.paysystems1.com/cgi-v310/payment/onlinesale-tpppro.asp" onSubmit="'.sendmail($company_name,$client_name,$color,$email,$url,$description,$comments,$payment,$item_name,$amount,$mailTo,$mailFrom,$msgSubject,$msgBody).'">

<input type="hidden" name="product1" value="'.$item_name.'">
<input type="hidden" name="total" value="'.$amount.'">
<input type="hidden" name="email" value="'.$email.'">
<input type="hidden" name="companyid" value="'.$paysystemsID.'">
<input type="hidden" name="formget" value="Y">
<input type="hidden" name="redirect" value="'.$thankyou.'">
<input type="hidden" name="redirectfail" value="'.$failed.'">
';

}


echo '<input type="submit" value="Place Order">&nbsp;&nbsp;&nbsp<input type="button" value="Go Back" onClick="history.go(-1)"></form>';
echo '</td></tr></table></div>';

multitaskerVic
11-20-2004, 01:36 PM
rocrom,

Those are the variables paysystems used in sending information through their gateway. *edited to add: (grabbing the transaction amounts from your site, processing, then sending back to your site to a page thats dependant upon either an 'approval' or a 'decline' of the payment.*

Although all gateways use variables such as these, they don't all use them in the same order or have other variables paysystems didn't have.

In order for you to get the form to do as you want it you would need to ask your gateway for THEIR variables (some will not tell you) or ask the gateway customer service to modify the input for your special needs.

What did the paysystems form produce for you that 2CO's payment variables do not?