11
11
11


, (, , ).
URL (statusURL), POST- , , :

            
amount, amountcurr, number, description, trtype, recurringFrequency, recurringEndDate, account, backURL ,  
currency , ( . . II) MBC/WMR/WMZ/WME ..
payamount , 100, 100.2, 100.25
percentplus (), 2.0, 3.5
percentminus (), 2.0, 3.5
PAN ***) 400000******0000
cardholder ***) CARDHOLDER NAME
paytoken , ( , )
transID 15431522
recurringID (, trtype = 3 4) 11311211312
datetime 2015-03-23 12:33:06.46976300
signature ****)

, , - , :

            
binName - MAX-BANK
binCountry - ( ISO 3166) RU
binPhone - 74950000000
binPrepaid ( Yes No ) No
ipCountry IP- ( ISO 3166, : A1 -, A2 , EU , AP - ) RU
ipHighRisk (Yes No) No
ipRiskScore IP- ( 1: ; 1-2: ; 2-3: ; 3: ) 0.0
mailFree , (Yes No) Yes
riskScore , ( 0.01 100) 1.12

IP- paygateway XXX.XXX.XXX.XXX.
- OK. ( ) ʻ. ʻ - .

. (PHP).

*) 1
**) ,
***) PAN cardholder ,
****) : "" amount, amountcurr, currency, number, description, trtype, payamount, percentplus, percentminus, account, backURL, transID, datetime, __1 ( ), __2 ( ). , backURL , , . : 1) md5; 2) HMAC sha256 (, : __1, __2).

PHP

					 <?
$amount = $_POST["amount"]; $amountcurr = $_POST["amountcurr"]; $number = $_POST["number"]; $payamount = $_POST["payamount"]; $currency = $_POST["currency"]; $percentplus = $_POST["percentplus"];
$percentminus = $_POST["percentminus"]; $PAN = $_POST["PAN"];
$cardholder = $_POST["cardholder"]; $transID = $_POST["transID"]; $signature = $_POST["signature"];
$testsig = "$amount:$amountcurr:$currency:$number:$payamount:"; $testsig .= "$percentplus:$percentminus:$account:$transID"; $testsig .= "__1:__2";
$testsig = strtoupper(md5($testsig));

if ($signature==$testsig)
{
//	  ,  , 
//	    
}
?>