TinyPortal

Development => Block Codes => Topic started by: G6Cad on December 12, 2006, 10:16:29 AM

Title: Premade amount donation block ?
Post by: G6Cad on December 12, 2006, 10:16:29 AM
I have seen on some sites that they have buttons with premade amount for their donations.
Like
"button" Donate 10$
"button" Donate 20$
"button" Donate 50$
"button" Donate Free amount

Any one knows how they have made this ?
I have searched on the paypal site, but i cant seem to find if i can set it up from there, so i guess this is something in the code for the donation block ???
Title: Re: Premade amount donation block ?
Post by: JPDeni on December 12, 2006, 03:55:26 PM
When you make your button on PayPal, there is a field where you can fill in an amount. Or at least there was when I checked it out. This is the code I got after I went through the button-making process:


<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="me@mydomain.com">
<input type="hidden" name="amount" value="20.00">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-DonationsBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>


The fourth line is where the amount is listed in a hidden field.
Title: Re: Premade amount donation block ?
Post by: G6Cad on December 12, 2006, 04:40:58 PM
Thank you JPDeni :)
I will check it out again there, so messy site so half of it would be nice  :-\
Title: Re: Premade amount donation block ?
Post by: ash on December 12, 2006, 04:55:54 PM
You can try the subscriptions mod.  I have this running on my site for different donation subscriptions.  There isn;t a paypal button, rather a "purchase" button.  Though the mod does use paypal to send and recieve funds.

The nice thing about the mod is that users can automatically continue the subscription when the time period you defined runs out.

The mod will also place the member in a custom forum group upon purchase and remove them if their subscription runs out (you can set it forever if thats what you want to do).  The mod also will allow user to easily track when they need to donate err, subscribe next.

You can get it on the SMF mods site.

Just a siggestion.  I'm a mod whore.
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fwww.thegamedomain.org%2Ftgdmain%2FSmileys%2Fdefault%2Fdisco.gif&hash=2b7fab13d0479a18e1acf73fe7308061079defba)
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fwww.thegamedomain.org%2Ftgdmain%2FSmileys%2Fdefault%2Fsuperbananadance.gif&hash=e916f40b5de36501804743dedbcee7a8c4589c89)
Title: Re: Premade amount donation block ?
Post by: G6Cad on December 12, 2006, 05:16:35 PM
That sounds like a good way to go as I cant find my way arround the PayPal site as i want to  :buck2:

Thank you for the tip ash :)
Title: Re: Premade amount donation block ?
Post by: 5cakids on December 29, 2006, 06:13:26 AM
How do I enter this into a block?
Title: Re: Premade amount donation block ?
Post by: bluedevil on January 02, 2007, 12:23:25 AM
Quote from: 5cakids on December 29, 2006, 06:13:26 AM
How do I enter this into a block?

scriptbox.