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,985
  • Total Topics: 21,321
  • Online today: 814
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 302
  • Total: 303
  • @rjen

Get your simple but effective donations code here

Started by biggsy, August 11, 2007, 04:36:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

biggsy

Hi just made a donations code block and thought i would share it about in case someone else needed it.

<form method="post" action="https://www.paypal.com/cgi-bin/webscr">
    <div align="center">
      <p><span class="heading">Donation Amount</span></p>
      <p><font face="Arial, Helvetica, sans-serif"><span class="heading">Ã,£</span></font>
        <input type="text" size="4" name="amount" />
      </p>
      <p>
        <input name="submit" type="submit" class="button" value="Donate" />       
        <input type="hidden" value="GBP" name="currency_code" />       
        <input type="hidden" value="Website Donation" id="item_name" name="item_name" />       
        <input type="hidden" value="Donation" id="item_number" name="item_number" />       
        <input type="hidden" value="http://www.yourdomain.com/thankyou.htm" name="return" />       
        <input type="hidden" value="http://www.yourdomain.com/cancelled.htm" name="cancel_return" />       
        <input type="hidden" value="your-paypal-email@yourdomain.com" name="business" />       
        <input type="hidden" value="0" name="handling" />       
        <input type="hidden" value="_xclick" name="redirect_cmd" />       
        <input type="hidden" value="_ext-enter" name="cmd" />       
        <input type="hidden" value="2" name="rm" />
        </p>
  </div>
</form>


Its simple to use, just create a script block and paste the code in, u may need to change some of the class styles i used if they dont exist in your css.

bigs

Neorics

so what do we need to edit to make it our own?

and what does that code actually do?

biggsy

just change the paypl values, like gbp, paypal email etc.

Neorics

#3
gbp is the currenvyright? i can change that to USD?

and i have to make a thank you and canceled article?

does this have an image already?

biggsy

sorry its very basic...

1. Change GBP to USD
2. You can change the next 2 if u like but i have them as donation and website donation
3. change the urls to the thankyou/success page and the cancelled page both hosted on your site.
4. Change the paypal email to the one used by your account.

Leave the rest alone.

Good luck

Neorics


biggsy


This website is proudly hosted on Crocweb Cloud Website Hosting.