• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 719
  • Last Modified:

PayPal Button for Email

Hi - I am trying to figure out a way to put a PayPal button in emails that go out to individuals so that they can click the button in the email and it takes them to our web site to donate to our organization.  All I end up with is the $ sign in the email in my testing.  Can someone tell me how I need to set this up and whether this will work in emails or point me to something that will work?  The code is taken from PayPal's site that we use on the website.  Thanks in advance!
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="4062073">
<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!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

Open in new window

0
TishuOne
Asked:
TishuOne
  • 6
  • 5
2 Solutions
 
David H.H.LeeCommented:
Hi TishuOne,
You can't post the entire "Form" values from email content to outside world using "Post" method like normal process that you've done before due to security issue. It is advisable not send any crucial content at all to let customer continue further processing regardless of the updated information to avoid any old cached record that no longer valid for the reservation. Try to imagine if the product price was raised up and the old purchase information still reside inside the email. I'll suggest you allow user click a hyper link to reach a special page that reserved for payment that redirect from email purpose. Then, your respective customers can see the updated purchase details before proceed to paypal site for further payment.

But, if you trying to use paypal inside email, you can use "Get" method in your form process OR
you can put all the hidden field into one complete querystring for further process.
eg:
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4062073" target="_blank"><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!"></a>

 

0
 
TishuOneAuthor Commented:
All this code does is produce a button which when clicked takes you to the form you need to fill out.  They are not purchasing product, simply donating money to a nonprofit.
They just want to be able to click a button to take them to the hyperlink.  Thanks.
0
 
David H.H.LeeCommented:
Hi TishuOne,
Ok, have you try the previous suggested?
This is also another cleaner approach for the mentioned.
eg:
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4062073" target="_blank"><img src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0"  alt="PayPal - The safer, easier way to pay online!"/></a>
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
TishuOneAuthor Commented:
Thank you  - I am not a programmer, but I understand what you are saying.
However, I now need to know the next step which is getting this to show up as a button in an email or as an email signature?
 

0
 
David H.H.LeeCommented:
Hi TishuOne,
Ok, do you have the right to change the source code? You need to put my proposed into mail's body property inside the generated code before send the mails to recipient. Please provide more details for your working environment.
0
 
TishuOneAuthor Commented:
We have a PayPal account and as such can use the PayPal source code to generate buttons for our websites, etc.    We have 65 organizations under our 501(c)(3) nonprofit and I would like to get this to work for several of them.
If you look at this site www.familyvoicesco.org/donate/index.htm that shows the donation button.  All we want to do is put the button in an email that goes out to donors so that they click on the button in the email and it takes them to the PayPal form to donate.
The email is not a form - is is just an email that we want to be able to copy the button into or put it in a signature line.   For the most part, people use MS Outlook 2003 or 2007 as their choice for emailing.
Not sure what else you need - let me know.
Thanks
 
0
 
David H.H.LeeCommented:
Hi TishuOne,
Ok, i understood your problem entirely now. You can put this html source as your outlook's email signature. I've tested it and it is working fine.

0
 
David H.H.LeeCommented:
Create the attached into "html" source as mentioned.
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4062073" target="_blank"><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!"></a>

Open in new window

0
 
TishuOneAuthor Commented:
Can you show me - send me an email to mromero@cndc.org with the button in the email.
When I copy your code to a signature file, all that shows up is the code when I send it.  I don't know what I am doing wrong.
 
 
0
 
David H.H.LeeCommented:
Hi TishuOne,
You need to use it as "html" source inside your outlook's email signature. Choose the html file under Create New Signature -> "Use this file as a template"
Please see this attached for the step that i mentioned:



Paypal-Signature.JPG
0
 
TishuOneAuthor Commented:
Okay - I finally got this figured out on my own.  FYI - it works a bit different in Office 2007.  So I will give you the points based on your efforts to help me.
 
Thanks!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now