Welcome to WebmasterWorld Guest from 18.206.168.65

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

gateway php form help?

     
2:36 am on Apr 18, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:May 29, 2005
posts: 866
votes: 0


I was redoing a site that I manage and when it was originally built I didn't have anything to do with setting up a payment form. It is a simple form but I can't seem to make it work. This company sells one service and so consequently a simple form. Can someone tell me what is the proper php that goes in here? It uses simlib and simdata and this is a simple html page as sim.php with the form in it. Unfortunately, when I saved it, I didn't do it from the control panel...I saved it from the live page. duh!

<H3>Final Order</H3>

Description: <BR />
Sub Total:$ <BR />
Total Amount :$ 0
<BR /><BR />
<!---<FORM action="https://test.authorize.net/gateway/transact.dll" method="POST">-->
<!-- Uncomment the line ABOVE for test accounts or BELOW for live merchant accounts -->
<FORM action="https://secure.example.net/gateway/transact.dll" method="POST">

<input type="hidden" name="x_fp_sequence" value="">
<input type="hidden" name="x_fp_timestamp" value="">
<input type="hidden" name="x_fp_hash" value="">
<input type="hidden" name="x_description" value="">
<input type="hidden" name="x_login" value="" size="20">
<input type="hidden" name="x_amount" value="0" size="20">
<INPUT type=hidden name="x_tax" value="0">
<INPUT type="hidden" name="x_show_form" value="PAYMENT_FORM">
<INPUT type="submit" value="Make Payment">
</FORM>
I removed the time stamps and so forth since they are generated.
Any help I can get...I don't do a lot of php.
Thanks!

4:02 am on Apr 18, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:May 29, 2005
posts: 866
votes: 0


I know that it is supposed to have a code similar to this>

value="<?php echo $description; ?>"

And I have inserted the appropriate code but still won't work. hekp anyone?

11:19 am on Apr 18, 2009 (gmt 0)

Senior Member from FR 

WebmasterWorld Senior Member henry0 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 19, 2003
posts: 4446
votes: 11


This is a php/C++ combo, probably done for Authorize.net
did you read this [creditcardstore.com]
4:49 pm on Apr 18, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:May 29, 2005
posts: 866
votes: 0


Yes, I have read thru it but I guess I am still not understanding it. Why can't they put up a sample form? The problem is not installing. The problem for me is duplicating the code in the form itself. It worked up til I built the new page around it. If only I had saved the original copy the control panel instead of the live copy.
I guess I should be clear. The form is not collecting any info. It passes thru to the sim.php page and evidently did not call any of the required data. The amount still reads zero and nothing else.