Login or Sign Up to become a member!
LessThanDot Sit Logo

LessThanDot

Web Developer

Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.

LTD Social Sitings

Lessthandot twitter Lessthandot Linkedin Lessthandot friendfeed Lessthandot facebook Lessthandot rss

Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.

Your profile

Authors

Search

XML Feeds

Google Ads

Tags: donate

comments
Rate Post:
submit to reddit Digg!FacebookDotnetkicks

Thz following piece of code demonstrates the normal way of making a donate button that uses your paypal account.

  1. <form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post">
  2. <input type="hidden" name="cmd" value="_xclick">
  3. <input type="hidden" name="business" value="email@you.us">
  4. <input type="hidden" name="item_name" value="yourvalue">
  5. <input type="hidden" name="currency_code" value="USD">
  6. <input type="hidden" name="amount" value="100.00">
  7. <input type="submit" value="$100.00" name="submit100" alt="Make payments with PayPal - it's fast, free and secure!">
  8. </form>

What is wrong with this? Well, it has an email address that is associated with your paypal account in there in plain text and spambots are still active and will harvest it sadly.

So you have to find a better way to do this and if you have a bussines account you can (not sure about normal accounts).

So here is how to make them. Login to paypal and click on the merchant services tab. there it has a create buttons category and a donate link. That takes you here.

Just make sure you have the Secure merchant account ID and it will create something like this.

  1. <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
  2. <input type="hidden" name="cmd" value="_s-xclick">
  3. <input type="hidden" name="hosted_button_id" value="numberinhere">
  4. <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
  5. <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
  6. </form>

where it has the numberinhere there will be a number specific for that button. The buttons are also saved just for you. You can ofcourse just replace the images with something you like.

And for those people who like to know why I did all this... LessThanDot now also has a donate page.

Enjoy.

About the Author

User bio imageChristiaan is a forensic technician who programs on the side, although my function description says that I do IT-things for 90% of the time . I'm an avid VB.NET fan and I use lots of the ALT.Net techniques, like unit-testing, nhibernate, logging, IoC, ...
Social SitingsTwitterLinkedInHomePageLTD RSS Feed
1970 views
submit to reddit Digg!FacebookDotnetkicks

Comments and Feedback