TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,993
  • Total Topics: 21,324
  • Online today: 388
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 331
  • Total: 332
  • lurkalot

Premade amount donation block ?

Started by g6cad, December 12, 2006, 10:16:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

G6Cad

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 ???

JPDeni

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.

G6Cad

Thank you JPDeni :)
I will check it out again there, so messy site so half of it would be nice  :-\

ash

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.


G6Cad

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 :)

5cakids



This website is proudly hosted on Crocweb Cloud Website Hosting.