SpiderOT
™ツʂριԃҽɾσƚ➽ ٩(•‿•)۶★彡
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
*Step one open Alertpay site << my referral link xD
then click on sign up Now
-Select your account >personal pro<
*Step two fill your information
*Step three fill your account information (keep record of your transaction pin)--very important
*Step four now after you have created your account they will send you email with verification link click it
*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
after you click on phone validation chose (click here to edit a phone ...)
now add your mobile number and click update
after that click next and send validation code
you will receive the validation code within a min
write the code you received and click submit
congratulation now you have completed the verification
now one step left to accept payment from alertpay CLick here
then add website
now you need to give them some information about your service write anything they probably don't read it xD
now you can accept payment from alertpay balance till they approve your site like this
now let's setup the IPN Click Here
enter your transaction pin and click access
now setup this page like image
######################################################
now to the script part
open xampp/htdocs/buypoints.php
after this part
add
and at the bottom of buypoints.php after
add this
now in index.php
add this
now create new file name it alertpay.php
there is 4 payment option in this script
w/e all you have to do is edit the red lines
okay we are done here now create folder in htdocs name it alertpay
and create ipn.php in it
now you have to edit those part
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
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
*Step one open Alertpay site << my referral link xD
then click on sign up Now
-Select your account >personal pro<
*Step two fill your information
*Step three fill your account information (keep record of your transaction pin)--very important
*Step four now after you have created your account they will send you email with verification link click it
*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
after you click on phone validation chose (click here to edit a phone ...)
now add your mobile number and click update
after that click next and send validation code
you will receive the validation code within a min
write the code you received and click submit
congratulation now you have completed the verification
now one step left to accept payment from alertpay CLick here
then add website
now you need to give them some information about your service write anything they probably don't read it xD
now you can accept payment from alertpay balance till they approve your site like this
now let's setup the IPN Click Here
enter your transaction pin and click access
now setup this page like image
######################################################
now to the script part
open xampp/htdocs/buypoints.php
after this part
PHP:
$config['paypal_active'] = true; #active paypal system?
PHP:
$config['alertpay_active'] = true; #active alertpay system?
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>';
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>';
add this
PHP:
case "alertpay";
$subtopic = "alertpay";
$topic = "AlertPay";
include("alertpay.php");
break;
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">
<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--
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
well that is all hope it helped someone
if you didn't understand part or something feel free to post it
Last edited: