topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday March 19, 2024, 2:22 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: Instructions for making a PayPal link people can follow to donate money to you  (Read 136131 times)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Here's a little tutorial for how to create a link people can click on to donate to you (note first you have to sign up at PayPal - i won't go into how to do that here):



log in to your paypal account



click "merchant tools" tab
paypal Screenshot - 001.png



click "donations" in box on right hand side
paypal Screenshot - 002.png



enter a donation name that will remind you and donator what this is for
(you can leave id number blank or use it to help you keep track of donations from dif places)

fill in a *suggested* donation amount, user can change it as they wish.
select the currency you prefer (or that your donators will prefer).

choose a button image (doesnt matter what you choose if you are only interested in a html link).

choose *NO* for encryption for maximum flexibility in using the link to donate - not a big deal
important: if you don't select NO then you wont get a nice pure url link which is what you want.

paypal Screenshot - 003.png



Click the "Add More Options" button, and go to the next screen,
and then set "no shipping needed" if its a donation,

and select YES for collect additional info, which just lets people type in a note to you -
(i've seen many a donation page which has forgotten this step which is sad).

you can fill in urls that they will get taken to after donation if you have some, otherwise leave blank.

click "create button now"

paypal Screenshot - 004.png



you'll then get a page with two results, an html code for websites (it's code for an html form) with the button image,
and a pure url you can paste into emails:

that pure url for emails is exactly what you want for adding to your profile here on donationcoder.com, just copy it and paste it into your paypal donation link in your profile page to get a little dollar sign next to your name that people can click on to go to your paypal donation page.

paypal Screenshot - 005.png



EXTRA STEPS FOR PUTTING THIS LINK IN YOUR DONATIONCODER.COM FORUM PROFILE:



click on "profile" button on the forum to go to your forum profile

paypal Screenshot - 006.png



click on "Forum Profile Information" link on left hand sidebar

paypal Screenshot - 007.png



paste the link you got from paypal site into your "PayPal Link:" field

paypal Screenshot - 008.png
« Last Edit: February 05, 2010, 10:40 AM by mouser »

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,066
    • View Profile
    • Donate to Member
Thanks I wondered how you did that (and was too lazy to dig around the PayPal site) ...

I don't know if it is a UK PayPal thing but if you specify an amount (where you say suggested amount) then the PayPal donation page created has that as a fixed amount. On the site it says leave blank if you want people to enter an amount.

Of course it does have the unforunate side effect of making your paypal email address visible on every post you make, and available to spam bots ...

Is there any way to add the encrypted button HTML to signatures? (I'd guess not)
« Last Edit: October 21, 2005, 06:29 AM by CarolHaynes »

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,260
    • View Profile
    • Donate to Member
Thanks mouser, that's really helpful! I wonder why PayPal doesn't have such a nice page to tell new users...

m_s

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 433
    • View Profile
    • Donate to Member
Not sure if I deserve one, but I guess I have contributed a little to the site... Anyway, that was dead easy!  Thanks, Mouser.   :up:

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,149
    • View Profile
    • Donate to Member
And we see again how well works Mr. Mousers Screenshot Captor for such issues  :Thmbsup:

Screenshot Captor should be shipped with Windows and Mr. Gates should pay mouser well for his great mastermind of coding !
« Last Edit: October 21, 2005, 10:21 AM by Stefan »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
see i used those numbers this time stefan, and when i get the new round "step #" cliparts then pictures will be even better :)  :Thmbsup:

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,149
    • View Profile
    • Donate to Member
Just an suggestion to use an alternative email address for your PayPal account
'cus your PayPal eMail address will be seen in the source
code of this web side, and so for bots too:

&business=XXXXXXXXXXXXXXXXXX%40XXXXXXXXXXXXXXXXXXXXXXX%2ecom&

;business=XXXXXXXXXXXXXXXXXXXXXXXXXXXX%40gmx%2ede&

mp;business=XXXXXXXXXXXXXXXXXXXX%40gmail%2ecom

%40   means an @-sign
%2e   means an dot
« Last Edit: October 22, 2005, 09:36 AM by mouser »

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,260
    • View Profile
    • Donate to Member
Yes, I know, but spam protection gets better and better anyway  :D

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
you know that is a VERY good point!

bots do scan websites and harvest emails for spam...
hmm, ok let's see how can we fix this..
maybe an encrypted paypal link is needed after all somehow...

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
i can have the button point to a script and not the person's email, and write a little script that opens the proper link.

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,066
    • View Profile
    • Donate to Member
How about allowing user to put a PayPal encrypted button script on their profile page (like you have added the ad control stuff) and then point the icon to the profile for people who have set it up?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
i think that would be too much of a security risk..
i suppose if you already have a web page, the easiest thing is to point your donation link to a page on your site with the encrypted form, but for those that don't a solution is still needed.

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,066
    • View Profile
    • Donate to Member
The encrypted PayPal link code is standard HTML format, you could handle the actual HTML tags (to avoid security issues) and just allow people to enter the encrypted part of the code, which is just an encryption of the email address etc.

Here is mine:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7----- Lots of encryption junk -----END PKCS7-----
">
</form>

As far as I can tell the "Lots of encrypted junk" is just that, not executable code. It is decoded on the PayPal page referred to using the PKCS7 routines embedded in the PayPal page.

the first three lines are standard (you could supply them so that you know they are OK along with the <form> tags). The only user customisable bit is the image file used for the button. You could choose that as a site default (or even use a DC specific image for the button).

The only user specific info required is the 'Lots of encrypted junk' which could be cut and paste into a user profile field, and automatically used to generate the button script (a trivial PHP script could do that).

If invalid data is supplied PayPal would not be able to decrypt it and generate its own error (and anyway it would not be ina DC page - so no threat to DC). If some one used somebody elses code they would effectively send all their donations to them, but the same thing could happen now if someone copied another users URL from the 'donate' button on the forum pages!!!

Just a thought.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
yes, you are right, if we enforced only having paypal encrypted form field text in that field (or if i allowed a special prefix like "encrypted=" which could be a reasonable solution), then this might be doable.

i really wish paypal had a better way of doing this.. they really should have a simple link with user id# in it or something  :down:

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
maybe what would be nice would be a simple javascript function that when you clicked on that link (or email link), brought up a tiny java script form that you have to click a button on before it will redirect you - that should stop any email harvesting and still allow general navigation.  anyone want to help me look for such a mini script?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
i've coded up a javascript encryption thing and ill be adding it today, stay tuned.

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,066
    • View Profile
    • Donate to Member
Don't know what you have done, but my PayPal link no longer works.

It seems that where ever there is an '&' in the URL, specified in my profile, it has been replaced by '&amp;'

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
i spent MANY HOURS cursing at my computer getting my javascript solution to this to work.
took about 1 hour to code it, 5 hours to figure out why javascript wasn't always working (answer, certain characters were being escaped out during the call).

hope you like the solution.  uses a simple encryption plus a confirmation dialog so people can see EXACTLY where they are being redirected to.

the obfuscation is also used on email links, so if you decide to make your email visible to the world here it will be obfuscated to prevent email harvesting robots as well.

this should keep everyone's email here safe  :Thmbsup:

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,066
    • View Profile
    • Donate to Member
Great - seems to be working now ...

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,066
    • View Profile
    • Donate to Member
One thought - same trick needs to be aimed at Columnist and Program writers pages on the site as they have links to PayPal (and presumably others) coded into their pages ...

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
good point carol - i'll fix those as well.

Mark0

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 652
    • View Profile
    • Mark's home
    • Donate to Member
It seems that there's some problem in the way the PayPal userid / email address is encoded, or something like that, because following the "$" link lead to this PayPal's page:

Error detected

We cannot process this transaction because there is a problem with the PayPal email address supplied by the seller. Please contact the seller to resolve the problem. If this payment is for an eBay listing, you can contact the seller via the "Ask Seller a Question" link on the listing page. When you have the correct email address, payment can be made at www.paypal.com.

Bye!

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
mark0 when i click your $ it works fine, at least in ie.  let me check firefox.

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,066
    • View Profile
    • Donate to Member
Works fine here too (using Maxthon)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
it was a firefox vs. ie problem.
fixed now.