Viewing Donate Button by PayPal

Donate Button by PayPal



User: Yuanbo L. 6 years ago
https://www.paypal.com/c2/selfhelp/article/how-do-i-create-a-donate-button-with-a-text-field-ts1513/1?channel=MTS

I follow the instruction from PayPal to create Donate Button, but I don't know why when I publish or preview it, the button is not shown, only the link works.

below is the entire code I'm using

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="7WDV6RSAGZLX6">
<input type="hidden" name="lc" value="C2">
<input type="hidden" name="item_name" value="Donation for www.GlitzyPalace.com">
<input type="hidden" name="button_subtype" value="services">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="cn" value="Add special instructions to the seller:">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_donateCC_LG.gif:NonHosted">
<table>
<tr><td><input type="hidden" name="on0" value="Your Full Name & Email Address">Your Full Name & Email Address</td></tr><tr><td><input type="text" name="os0" maxlength="200"></td></tr>
<tr><td><input type="hidden" name="on1" value="Your Company Name (optional)">Your Company Name (optional)</td></tr><tr><td><input type="text" name="os1" maxlength="200"></td></tr>
</table>
<input type="image" src="https://www.paypalobjects.com/en_US/C2/i/btn/btn_donateCC_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>

-------------------------------
Yuanbo Li
User: Paul-RAGESW 6 years ago
Hi Yuanbo,

Are you able to use the built in PayPal widget for this instead of using the code?

Can you publish your website and post the URL here so I can take a look?

Please post the exact page with the button on it.

Thanks,

Last edit 6 years ago

-------------------------------
Paul
EverWeb Developer
User: Roddy 6 years ago
When something like that doesn't work you should test the URLs in the browser to see if they are OK or, as in your case, not.

Try this ...

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="7WDV6RSAGZLX6">
<input type="hidden" name="lc" value="C2">
<input type="hidden" name="item_name" value="Donation for www.GlitzyPalace.com">
<input type="hidden" name="button_subtype" value="services">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="cn" value="Add special instructions to the seller:">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_donateCC_LG.gif:NonHosted">
<table>
<tr><td><input type="hidden" name="on0" value="Your Full Name & Email Address">Your Full Name & Email Address</td></tr><tr><td><input type="text" name="os0" maxlength="200"></td></tr>
<tr><td><input type="hidden" name="on1" value="Your Company Name (optional)">Your Company Name (optional)</td></tr><tr><td><input type="text" name="os1" maxlength="200"></td></tr>
</table>
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_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>

-------------------------------
Roddy

Website: http://everwebwidgets.com
Contact: http://everwebwidgets.com/ewWidgets-home/contact.html
NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own.
✔ Best Answer  
User: Yuanbo L. 6 years ago
Thnx Paul and Roddy, Using the one built-in EverWeb was my first thought, however I find out PayPal widget in EverWeb does't have "Donate" button, so that's why I chose to create my own from their website.

Then again thnx Roddy, I'm using the code you provide, it works, but would you let me know how you make it work and what went wrong in my previous code?

-------------------------------
Yuanbo Li
User: Roddy 6 years ago
It was just the file path to the button image that was incorrect.

If you compare the URL you posted to mine you will see that yours has an extra C2/

You can also use you own image by dragging it into the Assets List, copying the relative file path and pasting it into the code to replace the PayPal button url.

-------------------------------
Roddy

Website: http://everwebwidgets.com
Contact: http://everwebwidgets.com/ewWidgets-home/contact.html
NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own.
User: Yuanbo L. 6 years ago
Thnx Roddy for the tip, I copied entire code from PayPal and did exactly they say in the Help Center. No idea how this has happened. It's better to learn some coding knowledge myself in the future. haha.

-------------------------------
Yuanbo Li
User: wellnl 6 years ago
Hi Yuanbo

Just FYI, EverWeb 2.6 now includes a donate button in the PayPal widget


Post Reply
You must login or signup to post.