Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Paypal Donation Links
Topic Started: Oct 23 2009, 10:26 AM (129 Views)
Viral.
Member Avatar
Member
[ *  *  *  *  *  * ]
Is there any way you can form a donation link (paypal) with a specified amount of money if you know the recipient's email address? Basically, so it could be used in a shop, so if they clicked buy now, it would direct them to the paypal website, but with the amount of money they are spending and who it is being sent to. A callback would be really helpful as well so I know whether they went through with the payment, or aborted it.
Offline Profile Quote Post Goto Top
 
Codes Rock
Member Avatar
<?php echo 'Codes Rock rocks!'; ?>
[ *  *  * ]
Yes, if you have a paypal account, you can set up a donate button with a "donors contribute a fixed amount". When they click the button they will arrive to a screen that has the email address and/or name (you choose) of the paypal account holder.

Here is an example of a button set up for Viral that automatically has it set-up for $1,000:

Posted Image

Of course, the code I used for the button has the email masked, but they have an option to not hide it. You can also create buttons where you assign email addresses strictly.

Go to PayPal and visit this page!

. . . . .

EDIT: I created you a Viral@example.com button

Code:
 

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="viral@example.com">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Viral Example">
<input type="hidden" name="amount" value="10000.00">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHostedGuest">
<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>


Example:

Posted Image
Edited by Codes Rock, Oct 23 2009, 04:31 PM.
Offline Profile Quote Post Goto Top
 
Viral.
Member Avatar
Member
[ *  *  *  *  *  * ]
Hmm thanks. I'll mess around with that and see if it works with just text and dynamic emails.
Offline Profile Quote Post Goto Top
 
Codes Rock
Member Avatar
<?php echo 'Codes Rock rocks!'; ?>
[ *  *  * ]
Cool, let me know how it goes . . . now you've got me intrigued! :D
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply