Chat with our moderator team every Wednesday between 1-2pm PT (4-5pm ET). Learn more in Community Events
The current donate button isn’t working on our site, so, I created a new button for the same thing. The new code is different from the older code (from about 2 years ago). The old code begins with <h=ref; the new one with <form. When I inserted the new code, Wordpress said they don’t recognize the <form command.
Not sure how to proceed. It would be great to have a working donate button.
Can you help?
Just a big guess here:
You need the email link version as WordPress won't allow you to insert an HTML Form Version - your previous code was an email link or URL link, thus why it may have looked something like this:
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=your_email_address&item_name=Widget Foundation&item_number=WF-1001&no_shipping=1&return=http://www.yourwebsite.com/successful.html&cancel_return=http://www.yourwebsite.com/cancel.html&no_note=1&tax=0¤cy_code=USD&lc=US&bn=PP_DonationsBF" &target="paypal">Make a Donation</a>
The code you created is the HTML Form version, which would look something like this:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"> <input type="hidden" name="cmd" value="_donations"> <input type="hidden" name="business" value="your_email_address"> <input type="hidden" name="item_name" value="Widget Fund"> <input type="hidden" name="item_number" value="WF-1001"> <input type="hidden" name="amount" value="5.00"> <input type="hidden" name="no_shipping" value="0"> <input type="hidden" name="no_note" value="1"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="hidden" name="lc" value="US"> <input type="hidden" name="bn" value="PP-DonationsBF:btn_donate_LG.gif:NonHosted"> <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"> </form>
If you have a Personal Account, the option to create an email text or URL link using the button creator is not available - you can only create the HTML Form version.
However if you have a Business account.
* Login to your account.
* Select on Tools.
* Click on All Tools.
* Click on PayPal Buttons.
* Choose the Button type you want to make.
* For example: Buy Now.
* Click on Select Button.
* Enter the info you need.
* In step 2 you have the option to save the code at PayPal or not.
* When finished with all the details.
* Click Create Button.
* On the next screen you will see the generated code.
* Click on the Email tab - that will display the code you need.
* Click on Select Code - then copy and paste the code in your email or document.
Note, the "Email" tab will not be available if have included dropdown selections or text boxes in your item button code. This is because you cannot include dropdown selections or text boxes in a Text or Hyperlink.
Last, not sure why your current code is not working - would have to see the actual code and look at the variable values.
Here's the current code: <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6BFJLZB5ACQML"></a>
<img src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" alt="Donate Button with Credit Cards" />
Can you see something that's preventing it from working?