Guest Post By Tanmay Das
Many times I have read about a alertpay donate button. you know those button where the users can donate small amount 2 the site. But finding 1 is really tough. Paypal™ has a donate button, but you can donate only if you have a Paypal™ account. But everyone doesn't has a Paypal™ account.
So the other option is 2 allow people to use their credit-cards to donate. But to enable this feature you have to pay an excess of 20-25%. Now that is a real rip off.
Another option is Alertpay™, they allow credit-card transaction 4 free after a simple site verification. But the problem is they don't have a ready made donate button. So the option is to use a buy button as a donate button.
But now the problem is that the amount 4 a buy button is fixed (as you don't want the user to decide the amount for a purchase), but in case of a donation the user wishes to select the amount to donate.
Now I searched the net 4 sometime & finally found a code which allows the user to change the amount to donate as per their wish. But it had some problem, just a glitch as you can add any text in the text box. Now that is silly as no one would enter alphabet in that text box but Y take the risk so I found a script & modified the code so that only positive integers can B entered in the text box.
So here is the code:
<html><head>
<!– Code written by someone else but the whole thing is made by Tanmay Das –>
<script language="JavaScript">
function checkIt(evt) {
evt = (evt) ? evt : window.event
var charCode = (evt.which) ? evt.which : evt.keyCode
if (charCode > 31 && (charCode < 48 || charCode > 57)) {
status = "This field accepts numbers only."
return false
}
status = ""
return true
}
</script></head><body>
Enter Donation Amount:
<form method="post" action="https://www.alertpay.com/PayProcess.aspx">
<input type="hidden" name="ap_purchasetype" value="item-goods">
<input type="hidden" name="ap_merchant" value="jamshed11946@gmail.com">
<input type="hidden" name="ap_itemname" value="Donate">
<input type="hidden" name="ap_returnurl" value="Thank you page">
<input type="hidden" name="ap_quantity" value="1">
<input type="hidden" name="ap_description" value="Your each penny will keep us to continue">
<input type="text" name="ap_amount" value="" onKeyPress="return checkIt(event)">
<select name="ap_currency">
<option value="AUD">AUD</option>
<option value="BGN">BGN</option>
<option value="CAD">CAD</option>
<option value="CHF">CHF</option>
<option value="CZK">CZK</option>
<option value="DKK">DKK</option>
<option value="EEK">EEK</option>
<option value="EUR">EUR</option>
<option value="GBP">GBP</option>
<option value="HKD">HKD</option>
<option value="HUF">HUF</option>
<option value="LTL">LTL</option>
<option value="MYR">MYR</option>
<option value="NOK">NOK</option>
<option value="NZD">NZD</option>
<option value="PLN">PLN</option>
<option value="RON">RON</option>
<option value="SEK">SEK</option>
<option value="SGD">SGD</option>
<option value="USD" selected="selected">USD</option>
<option value="ZAR">ZAR</option>
</select>
<input type="hidden" name="ap_cancelurl" value="your cancelation url">
<input type="image" name="ap_image" src="donate.gif">
</form>
</body>
</html>
Update: You have to change all the things that are bold and red colored. However you can download a beautiful donate button Here









{ 17 comments… read them below or add one }
<code><input type="image" name="ap_image" src="donate.gif"></code>
Where can I get this image (donate.gif)?
And Does this script work well? Did you test it?
Anyway, thank so much.
Bee@
You can get that alertpay image Here http://adsenseurdu.com/images/alertpaydonate.jpg
Thanks alot for this trick. I used on my site for my Donation button.
very nice post sir
i have a question
i am a newbie and i don't know how to put this can you plz create another post showing step by step,how can i put it in my blog.
does it work with both blogger or wordpress,or just one.
thank you
Nice, thanks, do you have a way for Paypal too, where my users can put their own payment, because Paypal doens't offer put a number like Alertpay.
Thanks Bhai Jaan !
I use This Tip Its Great and Really Easy to use I am Really Thank Full to You.
Sir, Do you have Skype ID Please Send me. I need Few More Help from Your Side. Related to my Website and AlertPay.
Thank you for your time.
Regards
Muhammad Omor
Omor@
I have sent you an Email. Please check that and reply me. Thanks
hi
plz help me put an alertpay button on my website,i am still making it and its for donation andthey only have paypal buttons will i be allowed?
thans a lot
ali@
I think this button works perfectly and most of my website users say thanks as it works. However if you have any problem then you can contact by visiting this page http://adsenseurdu.com/contact-us/.
I shall reply you soon with the solution of your problem
hello……sir…..!!!!!!!!!
i want to ad ALERTPAY BUY NOW button into my site.please guide me.my email id is Emails are Not allowed here: Message from Admin
thanks
ketan@
Please check your mail. I have replied you with all details. If you find any difficulty, fee free to contact me.
Thanks for the nice code, it nice to see a person who shares his knowledge to others… keep it up.
Thanks a lot. Awesome post. The code worked for me
and in 24 hours..someone donated me $8 :-O
how-to-blogger-blog.blogspot.com
Asslam o Aalekum …..
Bro Tell Me what does it mean by your cancelation url
thanks and waiting for ur reply
toufeeq@
Congratulations
Aalijaah@
Cancelation URL leads to the URL where user will be redirected if something go wrong. Means donation procedure will not be completed and user will be redirected to your desired URL.
I almost forgot, Is there anyway to remove "the shipping method" from the checkout form? We want to receive donations, not ship anything. I will be so grateful for you assistance. Awaiting your reply @jashdass@ymail.com
Hi, I found your guidance very useful!
Now I am wondering, did you make the button 'donate us' yourself?
And do you have a way to remove the shipping method from the checkout form? We want to receive donations, not ship anything.
I will be so grateful for your assistance.
Jash Dass@
Thanks for your query. I have contacted Alertpay support and they said that its impossible to remove shipping method. So, you will have to bear this.
I have added donate button on my own website.OK
{ 1 trackback }