Web Hosting Talk







View Full Version : Question re: Paypal use


mjfroggy
04-10-2010, 10:13 PM
Hello,

I am looking to allow customers to input what amount they want to pay for my service and then auto populate the paypal checkout page with that amount but can not figure out the html form code to do it


<form method="POST" action="https://www.paypal.com/cgi-bin/webscr"><input type="hidden" name="mc_currency" value="USD" /
<input type="hidden" name="cmd" value="_s-xclick">
<input type="text" name="mc_gross" size="6" />
<input type="submit" name="submit" value="submit">


Part of my issue is also the above form when I click submit just brings me to the main paypal.com webpage and not the payment page??
I have also tried using
<input type="text" name='amount">
and still am not able to allow a user on my site fill out a form and input a money amount that then gets passed to paypal checkout page

stocky1606
04-12-2010, 04:17 AM
You need to use the amount field as a text field and the rest of the fields hidden

<input type="text" name="amount" value="12.99">