• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Configuration]AlertPay from scratch to full working ipn

SpiderOT

™ツʂριԃҽɾσƚ➽ ٩(•‿•)۶★彡
Joined
Sep 29, 2008
Messages
1,062
Solutions
9
Reaction score
288
Location
Egypt/cairo
Hello otlander :)
well we have seen alot of complain about paypal and chargeback ,account limite,verification
then why we don't use new system like paypal but with less cons
so here i am going to show you how to register account in AlertPay and verify it + working ipn to automatically add points so lets start :p


*Step one open Alertpay site << my referral link xD
then click on sign up Now
-Select your account >personal pro<
59783330.png

*Step two fill your information
36424461.png

*Step three fill your account information (keep record of your transaction pin)--very important
52801154.png

*Step four now after you have created your account they will send you email with verification link click it
68874058.png

27413589.png

*Step five time to verify your account go to home/my profile/Verification they provide two methods to verify your account we will use the second one mobile verification
44669990.png

after you click on phone validation chose (click here to edit a phone ...)
36206348.png

now add your mobile number and click update
63081179.png

after that click next and send validation code
34410161.png

you will receive the validation code within a min
45209224.png

write the code you received and click submit
congratulation now you have completed the verification
62113447.png

now one step left to accept payment from alertpay CLick here

69756795.png

then add website
29958511.png

now you need to give them some information about your service write anything they probably don't read it xD
69634267.png

now you can accept payment from alertpay balance till they approve your site like this
11766263.png

now let's setup the IPN Click Here
enter your transaction pin and click access
77718107.png

now setup this page like image
74014273.png

######################################################
now to the script part
open xampp/htdocs/buypoints.php
after this part

PHP:
$config['paypal_active'] = true; #active paypal system?
add
PHP:
$config['alertpay_active'] = true; #active alertpay system?
and at the bottom of buypoints.php after
PHP:
    if($config['paypal_active'])
        $main_content .= '<br /><a href="?subtopic=paypal"><h2>Donate via PayPal (Credit Card)</h2></a><h3>Donate via PayPal to get BONUS POINTS, you get Bonus points because you pay with PayPal!.</h3>';
add this
PHP:
    if($config['alertpay_active'])
        $main_content .= '<br /><a href="?subtopic=alertpay"><h2>Donate via AlertPay (Credit Card)</h2></a><h3>Donate via AlertPay to get BONUS POINTS, you get Bonus points because you pay with AlertPay!.</h3>';
now in index.php
add this

PHP:
    case "alertpay";
        $subtopic = "alertpay";
        $topic = "AlertPay";
        include("alertpay.php");
    break;
now create new file name it alertpay.php
PHP:
<?PHP
if(!$logged)
    $main_content .= '<h3>You must login to your account to donate!</h3><br><a href="?subtopic=accountmanagement">Login</a>';
else {
$account = $account_logged->getCustomField("id");
$main_content .= '
<head>
<style type="text/css">
.style1 {
    text-align: center;
}
.style2 {
    font-size: 8pt;
}
.style3 {
    font-size: 9pt;
    color: #008000;
}
.style5 {
    text-align: left;
    border-style: solid;
    border-width: 1px;
    padding: 1px 4px;
}
.style6 {
    color: #008000;
}
.style7 {
    color: #990000;
    font-size: medium;
    font-family: "MV Boli";
}
.style8 {
    font-family: "MV Boli";
}
.style10 {
    font-size: medium;
    text-align: left;
    color: #990000;
    font-weight: bold;
}
.style13 {
    color: #990000;
}
.style14 {
    font-size: small;
}
.style15 {
    font-size: small;
    text-align: left;
    color: #990000;
    font-weight: bold;
}
.style17 {
    font-size: 10pt;
    color: #990000;
}
.style18 {
    font-size: 10pt;
}
.style19 {
    margin-left: 374px;
}
</style>
</head>
<h3 class="style1">Donate with AlertPay.</h3>
<div class="style5">
    <br><strong>Donation with AlertPay are automatically and you will receive 
    your points <span class="style6">instantly</span></strong><br>
<br>Donate With AlertPay and get <span class="style6">extra points </span><br>
    <hr><br class="style8"><span class="style7"><strong>AlertPay donation fees:</strong></span>
    <br class="style8"><br class="style8"><hr style="height: -12px"><br><strong>
    3 euro = 4 donation points </strong><span class="style2">
    <span class="style6"><strong>(+2 extra points)</strong></span></span><strong><span class="style17"><blink><span class="style8">6</span> 
    points in total</blink></span><span class="style2">
<form method="post" action="https://www.alertpay.com/PayProcess.aspx" style="width: 98px" class="style19" >
    <input type="hidden" name="ap_merchant" value="[email protected]"/>
    <input type="hidden" name="ap_purchasetype" value="donation"/>
    <input type="hidden" name="ap_itemname" value="4 donation points"/>
    <input type="hidden" name="ap_amount" value="3.00"/>
    <input type="hidden" name="ap_currency" value="EUR"/>
    <input type="hidden" name="ap_quantity" value="1"/>
    <input type="hidden" name="ap_itemcode" value="6 point in total"/>
    <input type="hidden" name="ap_description" value="Get 4 points at SpiderOt by donating 3 euro! (+2 extra points)"/>
    <input type="hidden" name="ap_returnurl" value="http://spiderserver.no-ip.org/index.php?subtopic=shopsystem"/>
    <input type="hidden" name="ap_cancelurl" value="http://spiderserver.no-ip.org"/>
    <input name="apc_1" value="'.$account.'" type="hidden">
    <input type="image" src="https://www.alertpay.com/PayNow/C8B8BE222FFD40869AA2A7A5FF19A681b5en.gif"/>
</form>
<hr> </span> </strong><strong><br>7 euro = 10 donation points </strong>
    <span class="style3"><strong>(+5 extra points)</strong></span> <strong>
    <span class="style2">
    <span class="style6">
    </span><span class="style13">
    </span></span><span class="style13">
    <span class="style18">
    &nbsp;<blink><span class="style8">15 </span>points in total</blink></span></span><br>
<form method="post" action="https://www.alertpay.com/PayProcess.aspx" style="width: 98px" class="style19" >
    <input type="hidden" name="ap_merchant" value="[email protected]"/>
    <input type="hidden" name="ap_purchasetype" value="donation"/>
    <input type="hidden" name="ap_itemname" value="10 donation points"/>
    <input type="hidden" name="ap_amount" value="7.00"/>
    <input type="hidden" name="ap_currency" value="EUR"/>
    <input type="hidden" name="ap_quantity" value="1"/>
    <input type="hidden" name="ap_itemcode" value="15 point in total"/>
    <input type="hidden" name="ap_description" value="Get 10 points at SpiderOt by donating 7 euro! (+5 extra points)"/>
    <input type="hidden" name="ap_returnurl" value="http://spiderserver.no-ip.org/index.php?subtopic=shopsystem"/>
    <input type="hidden" name="ap_cancelurl" value="http://spiderserver.no-ip.org"/>
    <input name="apc_1" value="'.$account.'" type="hidden">
    <input type="image" src="https://www.alertpay.com/PayNow/C8B8BE222FFD40869AA2A7A5FF19A681b5en.gif"/>
</form>
    <hr><br>14 euro = 20 donation points</strong><span class="style6">
    <font size="2"><strong>(+12 extra points)<span class="style2">
    </span></strong></font></span><font size="2"><span class="style6"></span></font>
    <span class="style13">
    <span class="style18">
    <strong><blink><span class="style8">32</span> points in total</blink></strong></span></span><br>
<form method="post" action="https://www.alertpay.com/PayProcess.aspx" style="width: 98px" class="style19" >
    <input type="hidden" name="ap_merchant" value="[email protected]"/>
    <input type="hidden" name="ap_purchasetype" value="donation"/>
    <input type="hidden" name="ap_itemname" value="20 donation points"/>
    <input type="hidden" name="ap_amount" value="14.00"/>
    <input type="hidden" name="ap_currency" value="EUR"/>
    <input type="hidden" name="ap_quantity" value="1"/>
    <input type="hidden" name="ap_itemcode" value="32 point in total"/>
    <input type="hidden" name="ap_description" value="Get 20 points at SpiderOt by donating 14 euro! (+12 extra points)"/>
    <input type="hidden" name="ap_returnurl" value="http://spiderserver.no-ip.org/index.php?subtopic=shopsystem"/>
    <input type="hidden" name="ap_cancelurl" value="http://spiderserver.no-ip.org"/>
    <input name="apc_1" value="'.$account.'" type="hidden">
    <input type="image" src="https://www.alertpay.com/PayNow/C8B8BE222FFD40869AA2A7A5FF19A681b5en.gif"/>
</form>
    <hr> <strong>
    <br>28 euro = 40 donation points</strong><span class="style6">
    <font size="2"><strong>(+25 extra points)<span class="style2">
    </span></strong></font></span><font size="2"><span class="style6"></span></font>
    <span class="style13">
    <span class="style18">
    <strong><blink><span class="style8">65</span> points in total</blink></strong></span></span>
<form method="post" action="https://www.alertpay.com/PayProcess.aspx" style="width: 98px" class="style19" >
    <input type="hidden" name="ap_merchant" value="[email protected]"/>
    <input type="hidden" name="ap_purchasetype" value="donation"/>
    <input type="hidden" name="ap_itemname" value="40 donation points"/>
    <input type="hidden" name="ap_amount" value="28.00"/>
    <input type="hidden" name="ap_currency" value="EUR"/>
    <input type="hidden" name="ap_quantity" value="1"/>
    <input type="hidden" name="ap_itemcode" value="75 point in total"/>
    <input type="hidden" name="ap_description" value="Get 40 points at SpiderOt by donating 28 euro! (+25 extra points)"/>
    <input type="hidden" name="ap_returnurl" value="http://spiderserver.no-ip.org/index.php?subtopic=shopsystem"/>
    <input type="hidden" name="ap_cancelurl" value="http://spiderserver.no-ip.org"/>
    <input name="apc_1" value="'.$account.'" type="hidden">
    <input type="image" src="https://www.alertpay.com/PayNow/C8B8BE222FFD40869AA2A7A5FF19A681b5en.gif"/>
</form>
</div>
<div class="style5">
<br class="style10"><span class="style13"><font size="4">How to donate with AlertPay?</font></span>
    <br><br><hr><span class="style14">1.Click on one of the above link<br>2. 
    After you complete the payment you will automatically receive your point If 
    you did not receive your point </span><br class="style14">
    <span class="style14">send an E-mail to </span> <a href="mailto:[email protected]">
    <span class="style14">support_spider@hotmail</span><strong><span class="style14">.com</span></strong></a><strong><span class="style14"> with Title Alertpay
    </span>
</strong><span class="style14">(or msg ingame to Admin Spider) with <br>
    <span class="style6">the following info :
    </span>
    </span> <br class="style14"><span class="style14">-Character 
Name</span><br class="style14"><span class="style14">-Transaction ID</span><br class="style14">
    <span class="style14">-How much you payed</span><br class="style14">
    <span class="style14">We guarantee you 100% that you will receive the point 
    instantly. </span> 
<br class="style15"><span class="style14">
</span></div>
';}

?>

there is 4 payment option in this script
w/e all you have to do is edit the red lines

Code:
<form method="post" action="https://www.alertpay.com/PayProcess.aspx" style="width: 98px" class="style19" >    [COLOR="red"]--don't Touch this--[/COLOR]
  <input type="hidden" name="ap_merchant" value="[email protected]"/>    [COLOR="red"]--your alertpay email[/COLOR]
    <input type="hidden" name="ap_purchasetype" value="donation"/>
    <input type="hidden" name="ap_itemname" value="4 donation points"/> [COLOR="red"]--item name[/COLOR]
    <input type="hidden" name="ap_amount" value="3.00"/>               [COLOR="red"] --how much they should pay[/COLOR]
    <input type="hidden" name="ap_currency" value="EUR"/>               [COLOR="red"] --currency EUR/USD/CAD/etc[/COLOR]
    <input type="hidden" name="ap_quantity" value="1"/>
    <input type="hidden" name="ap_itemcode" value="6 point in total"/>
    <input type="hidden" name="ap_description" value="Get 4 points at SpiderOt by donating 3 euro! (+2 extra points)"/>   [COLOR="red"] --description[/COLOR]
    <input type="hidden" name="ap_returnurl" value="http://spiderserver.no-ip.org/index.php?subtopic=shopsystem"/>    [COLOR="red"]--it will redirct the player to this site if the payment complete [/COLOR]
    <input type="hidden" name="ap_cancelurl" value="http://spiderserver.no-ip.org"/>        [COLOR="red"]--it will redirct the player to this site if he cancel the payment[/COLOR]
    <input name="apc_1" value="'.$account.'" type="hidden">       [COLOR="red"] --don't Touch this--[/COLOR]
    <input type="image" src="https://www.alertpay.com/PayNow/C8B8BE222FFD40869AA2A7A5FF19A681b5en.gif"/>                   [COLOR="red"] --don't Touch this--
okay we are done here now create folder in htdocs name it alertpay
and create ipn.php in it

PHP:
<?php
/**
 * @author AlertPay
 * @edited by  SpiderOt
 */
 

    //The value is the Security Code generated from the IPN section of your AlertPay account. Please change it to yours.
    define("IPN_SECURITY_CODE", "security code");         //put the code from last picture
    define("MY_MERCHANT_EMAIL", "[email protected]");        //your alertpay email

    mysql_select_db('databasename', mysql_connect('localhost', 'root', 'password'));        //database information
    $ip = $ip = $_SERVER['REMOTE_ADDR'];
    $file = 'alertpay.log'; 
    $accountid = urldecode($_POST['apc_1']);
    $points = urldecode($_POST['points']);
    //Setting information about the transaction
    $receivedSecurityCode = urldecode($_POST['ap_securitycode']);
    $receivedMerchantEmailAddress = urldecode($_POST['ap_merchant']);    
    $transactionStatus = urldecode($_POST['ap_status']);
    $testModeStatus = urldecode($_POST['ap_test']);     
    $purchaseType = urldecode($_POST['ap_purchasetype']);
    $totalAmountReceived = urldecode($_POST['ap_totalamount']);
    $feeAmount = urldecode($_POST['ap_feeamount']);
    $netAmount = urldecode($_POST['ap_netamount']);
    $transactionReferenceNumber = urldecode($_POST['ap_referencenumber']);
    $currency = urldecode($_POST['ap_currency']);     
    $transactionDate= urldecode($_POST['ap_transactiondate']);
    $transactionType= urldecode($_POST['ap_transactiontype']);
    $reportedamount = urldecode($_POST['ap_amount']);
    
    //Setting the customer's information from the IPN post variables
    $customerFirstName = urldecode($_POST['ap_custfirstname']);
    $customerLastName = urldecode($_POST['ap_custlastname']);
    $customerAddress = urldecode($_POST['ap_custaddress']);
    $customerCity = urldecode($_POST['ap_custcity']);
    $customerState = urldecode($_POST['ap_custstate']);
    $customerCountry = urldecode($_POST['ap_custcountry']);
    $customerZipCode = urldecode($_POST['ap_custzip']);
    $customerEmailAddress = urldecode($_POST['ap_custemailaddress']);
    
    //Setting information about the purchased item from the IPN post variables
    $myItemName = urldecode($_POST['ap_itemname']);
    $myItemCode = urldecode($_POST['ap_itemcode']);
    $myItemDescription = urldecode($_POST['ap_description']);
    $myItemQuantity = urldecode($_POST['ap_quantity']);
    $myItemAmount = urldecode($_POST['ap_amount']);
    
    //Setting extra information about the purchased item from the IPN post variables
    $additionalCharges = urldecode($_POST['ap_additionalcharges']);
    $shippingCharges = urldecode($_POST['ap_shippingcharges']);
    $taxAmount = urldecode($_POST['ap_taxamount']);
    $discountAmount = urldecode($_POST['ap_discountamount']);
    
    if ($ip != "174.142.185.131" && $ip != "174.142.185.132") {
        $log = "".$transactionDate." [WARNING - ATTEMPTED CHEATING] Wrong Ip from ".$customerFirstName." ".$customerLastName." ".$customerEmailAddress." From ".$ip." For ".$points." points to account ".$accountid." Transaction=".$transactionStatus."";
        }
        if ($receivedMerchantEmailAddress != MY_MERCHANT_EMAIL) {
            // The data was not meant for the business profile under this email address.
            // Take appropriate action 
            $log = "".$transactionDate." [WARNING - ATTEMPTED CHEATING] Wrong Merchant Email Address from ".$customerFirstName." ".$customerLastName." ".$customerEmailAddress." From ".$ip." For ".$points." points to account ".$accountid." Transaction=".$transactionStatus."";
        }
        else {    
            //Check if the security code matches
            if ($receivedSecurityCode != IPN_SECURITY_CODE) {
                // The data is NOT sent by AlertPay.
                // Take appropriate action.
                $log = "".$transactionDate." [WARNING - ATTEMPTED CHEATING] Wrong Security Code >>".$receivedSecurityCode."<< from ".$customerFirstName." ".$customerLastName." ".$customerEmailAddress." From ".$ip." For ".$points." points to account ".$accountid." Transaction=".$transactionStatus."";
            }
            else {
                if ($transactionStatus == "Success") {
                    if ($testModeStatus == "1") {
                        // Since Test Mode is ON, no transaction reference number will be returned.
                        // Your site is currently being integrated with AlertPay IPN for TESTING PURPOSES
                        // ONLY. Don't store any information in your production database and 
                        // DO NOT process this transaction as a real order.
                        $log = "".$transactionDate." [WARNING - ATTEMPTED CHEATING] With Test Mode from ".$receivedSecurityCode." ".$customerFirstName." ".$customerLastName." ".$customerEmailAddress." From ".$ip." For ".$points." points to account ".$accountid." Transaction=".$transactionStatus."";
                    }
                    else {
                        if ($totalAmountReceived == 3) $amount = 6;         //if they pay 3 euro they will get 6 point
                        if ($totalAmountReceived == 7) $amount = 15;        //if they pay 7 euro they will get 15 point
                        if ($totalAmountReceived == 14) $amount = 32;        //if they pay 14 euro they will get 32 point
                        if ($totalAmountReceived == 28) $amount = 65;        //if they pay 28 euro they will get 65 point
                            if ($transactionStatus == "Success" && $currency == "EUR"){
                                $log = $transactionDate." - ".$totalAmountReceived." ".$currency." from ".$customerFirstName." ".$customerLastName." ".$customerEmailAddress." For ".$amount." points to account ".$accountid."   Transaction=".$transactionStatus."";

                                $add = mysql_query("UPDATE `accounts` SET `premium_points` = `premium_points` + '".$amount."' WHERE `id` = '".$accountid."' ");
                            }
                        else {
                                $log = "".$transactionDate." [WARNING -Wrong-Amount] ".$totalAmountReceived." ".$currency." from ".$customerFirstName." ".$customerLastName." ".$customerEmailAddress."-".$ip."  For ".$points." points to account ".$accountid."   Transaction=".$transactionStatus."";
                        }
                    }
                }
                        // This REAL transaction is complete and the amount was paid successfully.
                        // Process the order here by cross referencing the received data with your database.                                                         
                        // Check that the total amount paid was the expected amount.
                        // Check that the amount paid was for the correct service.
                        // Check that the currency is correct.
                        // ie: if ($totalAmountReceived == 50) ... etc ...
                        // After verification, update your database accordingly.
                else {
                        $log = "".$transactionDate." [WARNING - ATTEMPTED CHEATING] Transaction was cancelled from ".$customerFirstName." ".$customerLastName." ".$customerEmailAddress." From ".$ip." For ".$points." points to account ".$accountid." Transaction=".$transactionStatus."";
                        // Transaction was cancelled or an incorrect status was returned.
                        // Take appropriate action.
                }
            }
            
    $open = fopen($file, "a"); 
    fwrite($open, $log); 
    fwrite($open, "\r\n");
    fclose($open); 
        }
?>

now you have to edit those part

PHP:
define("IPN_SECURITY_CODE", "security code");         //put the code from last picture
PHP:
define("MY_MERCHANT_EMAIL", "[email protected]");        //your alertpay email
PHP:
mysql_select_db('databasename', mysql_connect('localhost', 'root', 'password'));        //database information
PHP:
if ($totalAmountReceived == 3) $amount = 6;         //if they pay 3 euro they will get 6 point
if ($totalAmountReceived == 7) $amount = 15;        //if they pay 7 euro they will get 15 point
if ($totalAmountReceived == 14) $amount = 32;        //if they pay 14 euro they will get 32 point
if ($totalAmountReceived == 28) $amount = 65;        //if they pay 28 euro they will get 65 point
Here is live demo
well that is all hope it helped someone :)
if you didn't understand part or something feel free to post it
 
Last edited:
Omg, what i always searched for, you rock! also proud to be the first to post, rep++ ofc

EDIT:

Forgot to say, finally, we can get rid of paypal :D
 
Last edited:
Don't find anything about it at the Alert, so I'll ask here, how many % of each payment will they keep?
Maybe 5-10%, it's nothing really. For example if you make 100 euro donations, you'll prolly get 90-95 euros
 
Maybe 5-10%, it's nothing really. For example if you make 100 euro donations, you'll prolly get 90-95 euros

last outpay from daopay, I got 400 euro in over 2 weeks, and going out 90~ Euro xD
So yeah, what ever else is a lot better x)
 
last outpay from daopay, I got 400 euro in over 2 weeks, and going out 90~ Euro xD
So yeah, what ever else is a lot better x)

I got 1300(idk but probably more than that) euros in 2 months, got 600 :S 2bad alertpay doesnt accept phone calls
 
I got 1300(idk but probably more than that) euros in 2 months, got 600 :S 2bad alertpay doesnt accept phone calls

doesn't matter actually, if Alert would they would probably have nearly identical fees as daopay... after all, Daopay base their fees on how much it cost to send sms and call around the globe..
 
Very nice.

They take 2.5%. Basically the same as PayPal.
 
Your account has been blocked from attempting any more phone identification attempt. Please contact Customer Support.

:/
why?

now i did new acc and im not getting a massage!
 
Last edited:
use correct phone number with your country code
 
i did :/

they puted the code and i added the number normaly with no code bec they already put the code <<
 
when someone presses on the buy button i get this
We apologize, but the payment button settings are incorrect. The following problems occurred:

* We apologize, but this email does not exist in the AlertPay system.


If you are a buyer, please inform the seller.
 
well what do you think this mean?
Code:
* We apologize, but this email does not exist in the AlertPay system.
check your email again
 
Back
Top