Personal computing discussed

Moderators: renee, SecretSquirrel, just brew it!

 
zapgirl
Gerbil Elite
Topic Author
Posts: 612
Joined: Fri Jun 18, 2004 1:06 pm
Location: TR, so?
Contact:

integrate Paypal donation on a site

Wed Jun 28, 2006 8:44 am

hey guys,

i was honored that lately i have been assigned to a project to build a website for a local old folks home in my town however i have a question to intergrate paypal donation to the site at the moment.


i like to do something like wikipedia donation where you are allow to key the amount of donation and make a note of it whether you like to keep anonymous or publicly listed send to your mailbox but i'm unsure how to do so, can somebody please guide me through this please?

http://wikimediafoundation.org/wiki/Fundraising


Thanks alot :D
 
FireGryphon
Darth Gerbil
Posts: 7729
Joined: Sat Apr 24, 2004 7:53 pm
Location: the abyss into which you gaze

Wed Jun 28, 2006 8:55 am

PayPal might provide code for interfacing with its service. Maybe you can contact them and ask them.
Sheep Rustlers in the sky! <S> Slapt | <S> FUI | Air Warrior II/III
 
zapgirl
Gerbil Elite
Topic Author
Posts: 612
Joined: Fri Jun 18, 2004 1:06 pm
Location: TR, so?
Contact:

Wed Jun 28, 2006 9:17 am

they did provide code the create donation button where you click on it you will proceed to paypal payment site however they did not intergrate with email notification like the feature they have at wikipedia whether you like your name publicly or as an anonymous donator.

thanks.
 
thegleek
Darth Gerbil
Posts: 7460
Joined: Tue Jun 10, 2003 11:06 am
Location: Detroit, MI
Contact:

Wed Jun 28, 2006 9:40 am

zapgirl wrote:
they did provide code the create donation button where you click on it you will proceed to paypal payment site however they did not intergrate with email notification like the feature they have at wikipedia whether you like your name publicly or as an anonymous donator.

Their code for how they did that is publicly viewable:
<form class="contrib" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<div style="margin:0 1em 0 .5em; border: 2px solid #aaa; padding: 1em; float: left; background-color: #fafafa; clear: left; cursor: default;"><input type="hidden" name="business" value="[email protected]" /> <input type="hidden" name="item_name" value="One time donation" /> <input type="hidden" name="item_number" value="DONATE" /> <input type="hidden" name="no_note" value="0" /> <!--
    <input type="hidden" name="currency_code" value="USD" />
-->
 <input type="hidden" name="cmd" value="_xclick" /> <input type="hidden" name="on1" value="Comment" /> <input type="hidden" name="lc" value="en" /> <input type="hidden" name="on0" value="Anonymity" /> <input type="hidden" name="notify_url" value="http://wikimediafoundation.org/cgi-bin/paywiki.cgi" />
<table style="background-color: transparent;" width="300px" cellpadding="5">
<tr>
<td width="30%"><label for="don-amount"><b>One time gift of</b></label></td>
<td width="70%"><input type="text" name="amount" id="don-amount" maxlength="30" size="5" /> <select name="currency_code">
<option value="USD" selected="selected">$ (USD)</option>
<option value="EUR">€ (EUR)</option>
<option value="GBP">£ (GBP)</option>
<option value="CAD">$ (CAD)</option>
<option value="AUD">$ (AUD)</option>
<option value="JPY">¥ (JPY)</option>
</select></td>
</tr>
<tr>
<td width="30%"><label for="os1">Public comment<br />
<small>(200 characters max)</small></label></td>
<td width="70%"><input type="text" size="25" name="os1" id="os1" maxlength="200" /></td>
</tr>
<tr>
<td width="30%">Public donor list<br /></td>
<td width="70%"><input type="radio" name="os0" id="name-yes" value="Mention my name" /><label for="name-yes">List my name</label><br />
<input type="radio" name="os0" id="name-no" checked="checked" value="Don't mention my name" /><label for="name-no">List anonymously</label></td>
</tr>
<tr>
<td width="30%"><input class="centered" type="submit" value="Donate Now!" /></td>
<td width="70%"><img src="http://upload.wikimedia.org/wikipedia/foundation/7/78/Credit_cards.png" alt="Visa, MasterCard, Discover, American Express, eCheck" /></td>
</tr>
</table>
</div>
</form>

Will produce the code they have on their webpage such as this:

Image
––•–√\/––√\/––•–– nostalgia is an emotion for people with no future ––•–√\/––√\/––•–-
 
zapgirl
Gerbil Elite
Topic Author
Posts: 612
Joined: Fri Jun 18, 2004 1:06 pm
Location: TR, so?
Contact:

Wed Jun 28, 2006 9:58 am

Thanks gleek...i did viewed that however i found out there are hidden .cgi to handle the mailform i believe (unsure) at the coding

http://wikimediafoundation.org/cgi-bin/paywiki.cgi



Is it a must in .cgi? i preferabled php to handle the mailing ...possible? Thanks
 
thegleek
Darth Gerbil
Posts: 7460
Joined: Tue Jun 10, 2003 11:06 am
Location: Detroit, MI
Contact:

Wed Jun 28, 2006 11:37 am

zapgirl wrote:
Thanks gleek...i did viewed that however i found out there are hidden .cgi to handle the mailform i believe (unsure) at the coding
http://wikimediafoundation.org/cgi-bin/paywiki.cgi

Is it a must in .cgi? i preferabled php to handle the mailing ...possible? Thanks

cgi is just perl in disguise... php is definately do-able! :)

from their code again,
<input type="hidden" name="notify_url" value="http://wikimediafoundation.org/cgi-bin/paywiki.cgi" />

All the notify_url is doing is sending the user back to the specified site and the script handles the rest.... see: http://olate.co.uk/support/docs/mhtml/i ... aypal.html

^ for more information how to do that.
––•–√\/––√\/––•–– nostalgia is an emotion for people with no future ––•–√\/––√\/––•–-
 
zapgirl
Gerbil Elite
Topic Author
Posts: 612
Joined: Fri Jun 18, 2004 1:06 pm
Location: TR, so?
Contact:

Fri Jun 30, 2006 10:56 am

Thanks alot thegleek, appreciate it...look like i require to gain access to the paypal account somehow, it would be better if able to do it without having any access to paypal account...i just want to make a simple notification to the mailbox thats all...however will see what suit the best...thanks :D

Who is online

Users browsing this forum: No registered users and 1 guest
GZIP: On