I am having issues adding a donate button to wordpress site.

accentweb
New Community Member

I am a web developer using wordpress. I received this code from the client, however I don't know how to adapt it for wordpress code for a donate button.

<form action="https://www.paypal.com/cgi-bin/webscr" method="post"
target="_top">
<input type="hidden" name="cmd" value="_s-xclick" />
<input type="hidden" name="hosted_button_id" value="PUDHB3L2TQHW4" />
<input type="image"
src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"
border="0" name="submit" title="PayPal - The safer, easier way to pay
online!" alt="Donate with PayPal button" />
<img alt="" border="0" src="https://www.paypal.com/en_CA/i/scr/pixel.gif"
width="1" height="1" />
</form>

 

I tried this and it isn't working as well:

<a href="https://paypal.com/cgi-bin/webscr?cmd=_s-xclick&=PUDHB3L2TQHW4" target="_blank" rel="nofollow"><img src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" alt="" /></a>

 

Login to Me Too
1 REPLY 1

MTS_Andre
Moderator
Moderator

Hi Accentweb, I tried the code of your hosted button and I can access correctly to the donation. I tried copying your button code on a basic html page, outside any eCommerce like Wordpress.

 

Here my test:

 

MTS_Andre_0-1587563549269.png

If you want to have the button in a form of link you need to use this link instead:

https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=PUDHB3L2TQHW4

 

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.