TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 844
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 321
  • Total: 321

How to add a PayPal button?

Started by joesdomain, March 02, 2005, 02:24:51 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

danfaz

I know this is an old topic, but thought I'd post, since I just added a paypal button to my index template. I'm using the Neptune theme on 1.1 Beta 3.

In the // leftblocks
function leftbar()
section, I added sidebartop('Donations');

Then this code:

?><script type="text/javascript">
function gopaypal() {
ÂÃ,  ÂÃ, document.paypalinfo.submit();
}
</script>

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="your paypal ID">
<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="bn" value="PP-DonationsBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but11.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" style="margin: 2px 0;"ÂÃ,  border="0" onclick="gopaypal();"/>
</form>ÂÃ,  ÂÃ, 
<?

Works perfectly :)

This website is proudly hosted on Crocweb Cloud Website Hosting.