Paypal Button Only Refreshes Page; Does not bring to Paypal Checkout

Brsc1975
New Community Member

We created a paypal button to put on our website to allow customers to pre-purchase items for a tournament this summer. However, when inputting the HTML code into the website, the button only populates; it does not actually work properly. Clicking the paypal button only refreshes the page and does not bring you to Paypal to check out. I know it's an issue with the HTML code, but I have no experience in that area. The code provided to us is below:

 

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">

<input type="hidden" name="cmd" value="_s-xclick">

<input type="hidden" name="hosted_button_id" value="XLNG7MKGM7UQN">

<table>

<tr><td><input type="hidden" name="on0" value="Parking Pass">Parking Pass</td></tr><tr><td><select name="os0">

                <option value="Weekly Pass">Weekly Pass $40.00 USD</option>

                <option value="Bus/RV  Weekly Pass">Bus/RV  Weekly Pass $75.00 USD</option>

</select> </td></tr>

<tr><td><input type="hidden" name="on1" value="State, Team, Gender, Age Group">State, Team, Gender, Age Group</td></tr><tr><td><input type="text" name="os1" maxlength="200"></td></tr>

<tr><td><input type="hidden" name="on2" value="Manager Name, Email, Cellphone">Manager Name, Email, Cellphone</td></tr><tr><td><input type="text" name="os2" maxlength="200"></td></tr>

</table>

<input type="hidden" name="currency_code" value="USD">

<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">

<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">

</form>

 

 

 

Any help is greatly appreciated!

Login to Me Too
1 REPLY 1

ccpvwtech
Contributor
Contributor

I cut and pasted your code into a WordPress page and it worked - but WordPress threatened to change the HTML. It wanted to add after <table> <tbody>and </tbody> Before </table> and it put <figure> </figure> on either side of your image.  I have found if you test too much that PayPal doesn't let you get to the site - I'm not sure if it's my cookies or what, but code has worked the next day.  So I think the button value is good. Try it on someone else's machine.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.