Friday, July 2, 2010

How to add an alertpay donate button

Buzz It
                              
Alertpay is a payment processor just like paypal. It supports lots of countries but unlike paypal it does not have a ready made button due to which the users of alertpay acquire problem in receiving donations from the readers.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 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.



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="
rafaybaloch@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="
http://2.bp.blogspot.com/_fMrF3L8CTmg/TC4JgzHWrCI/AAAAAAAAArA/e539WhqKo-8/s320/alertpaydonate.jpg">

</form>
</body>
</html>



A demo of an Alertpay donate button is on my site Ethical hacking and security tips.IF you are encountering problems with this button feel free to comment.
Related Posts with Thumbnails

7 Comment:

Anonymous said...

thank you for the post

Rafay Baloch said...

@Anonymous
Your welcome Friend

Emma said...

Thank you!

ONLINE MASTER said...

thank you very much i found it very easy thank you again

Izabela said...

interesting and util post, thx!!!

aridonesafety said...

thank u for your information

syedumair said...

thanks for ur sharing...but tell me kindly and how much time is past when u use donate button in ur blog and how much u get from donation..?..kindly mail me at umairigilani@yahoo.... i have also blogs on blogspot hope u like these http://codes4mobiles.blogspot.com http://x2rongworld.blogspot.com

:)) ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} :)] ~x( :-t b-( :-L x( =))

Recent posts


Recent Comments


  ©Template Blogger Elegance by Dicas Blogger.