How to add Alertpay Donate Button

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 }

1 Bee March 25, 2010 at 12:27 pm

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

2 Admin March 25, 2010 at 4:43 pm

Bee@

You can get that alertpay image Here http://adsenseurdu.com/images/alertpaydonate.jpg

3 Cyph0n July 18, 2010 at 1:53 am

Thanks alot for this trick. I used on my site for my Donation button.

4 sara August 30, 2010 at 6:25 pm

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

5 Jhon September 19, 2010 at 2:46 pm

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.

6 Omor October 9, 2010 at 4:16 pm

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

7 Admin October 9, 2010 at 6:49 pm

Omor@

I have sent you an Email. Please check that and reply me. Thanks

8 ali November 12, 2010 at 11:33 pm

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

9 Admin November 19, 2010 at 4:51 am

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

10 ketan December 10, 2010 at 4:07 am

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

11 Admin December 11, 2010 at 4:15 pm

ketan@

Please check your mail. I have replied you with all details. If you find any difficulty, fee free to contact me.

12 Blairezon Blenn February 15, 2011 at 1:41 am

Thanks for the nice code, it nice to see a person who shares his knowledge to others… keep it up.

13 toufeeq July 15, 2011 at 8:26 am

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

14 Aalijaah July 29, 2011 at 1:26 pm

Asslam o Aalekum …..
Bro Tell Me what does it mean by your cancelation url
thanks and waiting for ur reply

15 Admin August 14, 2011 at 6:08 am

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.

16 Jash Dass August 26, 2011 at 12:09 pm

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.

17 Admin August 30, 2011 at 12:39 am

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

Leave a Comment

 

{ 1 trackback }