Add to Cart buttons directing to Paypal home page

TeqToo
Contributor
Contributor

I am creating a website for a non-profit organization with Wordpress. I am currently working on a page for membership submissions, and have created "Add to Cart" buttons for two different types of membership, with various options. The problem I am having is that, after adding the code in the "text" screen, the buttons appear to be fine, but when clicking them it takes me to the Paypal home (login) page, instead of to where the visitor can check out and pay.

 

Here is the code for one of the buttons as it appears in the code:

 

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="paypal"><input name="hosted_button_id" type="hidden" value="KZZESMU2MV5JU" />
<table>
<tbody>
<tr>
<td><input name="on0" type="hidden" value="Choose Individual membership level" />Choose Individual membership level</td>
</tr>
<tr>
<td><select name="os0">
<option value="Subscribing">Subscribing $20.00 USD</option>
<option value="Supporting">Supporting $40.00 USD</option>
<option value="Contributing">Contributing $75.00 USD</option>
<option value="Guardian">Guardian $100.00 USD</option>
<option value="Life">Life $500.00 USD</option>
</select></td>
</tr>
<tr>
<td><input name="on1" type="hidden" value="Type of membership" />Type of membership</td>
</tr>
<tr>
<td><select name="os1">
<option value="New Membership">New Membership</option>
<option value="Renewal">Renewal</option>
<option value="Gift Membership">Gift Membership</option>
</select></td>
</tr>
<tr>
<td><input name="on2" type="hidden" value="Gift recipient name &amp; address" />Gift recipient name &amp; address</td>
</tr>
<tr>
<td><input maxlength="200" name="os2" type="text" /></td>
</tr>
<tr>
<td><input name="on3" type="hidden" value="Renewing membership #" />Renewing membership #</td>
</tr>
<tr>
<td><input maxlength="200" name="os3" type="text" /></td>
</tr>
</tbody>
</table>
<input name="currency_code" type="hidden" value="USD" />
<input alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_LG.gif" type="image" />
<img src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" alt="" width="1" height="1" border="0" />

</form>
Login to Me Too
2 REPLIES 2

TeqToo
Contributor
Contributor

I didn't mention that this isn't a Wordpress.com website - it's created with Wordpress CMS software on a web hosting server. 

Login to Me Too

TeqToo
Contributor
Contributor

Oddly enough, the "Sample Add to Cart Button" in the button factory works just fine - here is the code for that:

 

<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="EY5T88AWHJ8ES">
<table>
<tr><td><input type="hidden" name="on0" value="Name of drop-down menu">Name of drop-down menu</td></tr><tr><td><select name="os0">
	<option value="Option 1">Option 1 $0.01 USD</option>
	<option value="Option 2">Option 2 $0.02 USD</option>
	<option value="Option 3">Option 3 $0.03 USD</option>
</select> </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>

So what am I doing wrong that the button I created won't go to the checkout page?

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.