< form method ="post" action ="http://test.robokassa.ru/Index.aspx" > <!-- action "https://merchant.roboxchange.com/Index.aspx" --> < input type ="hidden" name ="MrchLogin" value ="-- --" /> < input type ="hidden" name ="OutSum" value ="-- , - --" /> < input type ="hidden" name ="InvId" value ="-- -- " /> < input type ="hidden" name ="Desc" value ="-- , : -- " /> < input type ="hidden" name ="SignatureValue" value ="{SIGNATURE}" /> < input type ="submit" value ="" /> </ form > * This source code was highlighted with Source Code Highlighter .
< form method ="post" action ="http://test.robokassa.ru/Index.aspx" > <!-- action "https://merchant.roboxchange.com/Index.aspx" --> < input type ="hidden" name ="MrchLogin" value ="-- --" /> < input type ="hidden" name ="OutSum" value ="-- , - --" /> < input type ="hidden" name ="InvId" value ="-- -- " /> < input type ="hidden" name ="Desc" value ="-- , : -- " /> < input type ="hidden" name ="SignatureValue" value ="{SIGNATURE}" /> < input type ="submit" value ="" /> </ form > * This source code was highlighted with Source Code Highlighter .
< form method ="post" action ="http://test.robokassa.ru/Index.aspx" > <!-- action "https://merchant.roboxchange.com/Index.aspx" --> < input type ="hidden" name ="MrchLogin" value ="-- --" /> < input type ="hidden" name ="OutSum" value ="-- , - --" /> < input type ="hidden" name ="InvId" value ="-- -- " /> < input type ="hidden" name ="Desc" value ="-- , : -- " /> < input type ="hidden" name ="SignatureValue" value ="{SIGNATURE}" /> < input type ="submit" value ="" /> </ form > * This source code was highlighted with Source Code Highlighter .
< form method ="post" action ="http://test.robokassa.ru/Index.aspx" > <!-- action "https://merchant.roboxchange.com/Index.aspx" --> < input type ="hidden" name ="MrchLogin" value ="-- --" /> < input type ="hidden" name ="OutSum" value ="-- , - --" /> < input type ="hidden" name ="InvId" value ="-- -- " /> < input type ="hidden" name ="Desc" value ="-- , : -- " /> < input type ="hidden" name ="SignatureValue" value ="{SIGNATURE}" /> < input type ="submit" value ="" /> </ form > * This source code was highlighted with Source Code Highlighter .
< form method ="post" action ="http://test.robokassa.ru/Index.aspx" > <!-- action "https://merchant.roboxchange.com/Index.aspx" --> < input type ="hidden" name ="MrchLogin" value ="-- --" /> < input type ="hidden" name ="OutSum" value ="-- , - --" /> < input type ="hidden" name ="InvId" value ="-- -- " /> < input type ="hidden" name ="Desc" value ="-- , : -- " /> < input type ="hidden" name ="SignatureValue" value ="{SIGNATURE}" /> < input type ="submit" value ="" /> </ form > * This source code was highlighted with Source Code Highlighter .
< form method ="post" action ="http://test.robokassa.ru/Index.aspx" > <!-- action "https://merchant.roboxchange.com/Index.aspx" --> < input type ="hidden" name ="MrchLogin" value ="-- --" /> < input type ="hidden" name ="OutSum" value ="-- , - --" /> < input type ="hidden" name ="InvId" value ="-- -- " /> < input type ="hidden" name ="Desc" value ="-- , : -- " /> < input type ="hidden" name ="SignatureValue" value ="{SIGNATURE}" /> < input type ="submit" value ="" /> </ form > * This source code was highlighted with Source Code Highlighter .
< form method ="post" action ="http://test.robokassa.ru/Index.aspx" > <!-- action "https://merchant.roboxchange.com/Index.aspx" --> < input type ="hidden" name ="MrchLogin" value ="-- --" /> < input type ="hidden" name ="OutSum" value ="-- , - --" /> < input type ="hidden" name ="InvId" value ="-- -- " /> < input type ="hidden" name ="Desc" value ="-- , : -- " /> < input type ="hidden" name ="SignatureValue" value ="{SIGNATURE}" /> < input type ="submit" value ="" /> </ form > * This source code was highlighted with Source Code Highlighter .
< form method ="post" action ="http://test.robokassa.ru/Index.aspx" > <!-- action "https://merchant.roboxchange.com/Index.aspx" --> < input type ="hidden" name ="MrchLogin" value ="-- --" /> < input type ="hidden" name ="OutSum" value ="-- , - --" /> < input type ="hidden" name ="InvId" value ="-- -- " /> < input type ="hidden" name ="Desc" value ="-- , : -- " /> < input type ="hidden" name ="SignatureValue" value ="{SIGNATURE}" /> < input type ="submit" value ="" /> </ form > * This source code was highlighted with Source Code Highlighter .
< form method ="post" action ="http://test.robokassa.ru/Index.aspx" > <!-- action "https://merchant.roboxchange.com/Index.aspx" --> < input type ="hidden" name ="MrchLogin" value ="-- --" /> < input type ="hidden" name ="OutSum" value ="-- , - --" /> < input type ="hidden" name ="InvId" value ="-- -- " /> < input type ="hidden" name ="Desc" value ="-- , : -- " /> < input type ="hidden" name ="SignatureValue" value ="{SIGNATURE}" /> < input type ="submit" value ="" /> </ form > * This source code was highlighted with Source Code Highlighter .
< form method ="post" action ="http://test.robokassa.ru/Index.aspx" > <!-- action "https://merchant.roboxchange.com/Index.aspx" --> < input type ="hidden" name ="MrchLogin" value ="-- --" /> < input type ="hidden" name ="OutSum" value ="-- , - --" /> < input type ="hidden" name ="InvId" value ="-- -- " /> < input type ="hidden" name ="Desc" value ="-- , : -- " /> < input type ="hidden" name ="SignatureValue" value ="{SIGNATURE}" /> < input type ="submit" value ="" /> </ form > * This source code was highlighted with Source Code Highlighter .
< form method ="post" action ="http://test.robokassa.ru/Index.aspx" > <!-- action "https://merchant.roboxchange.com/Index.aspx" --> < input type ="hidden" name ="MrchLogin" value ="-- --" /> < input type ="hidden" name ="OutSum" value ="-- , - --" /> < input type ="hidden" name ="InvId" value ="-- -- " /> < input type ="hidden" name ="Desc" value ="-- , : -- " /> < input type ="hidden" name ="SignatureValue" value ="{SIGNATURE}" /> < input type ="submit" value ="" /> </ form > * This source code was highlighted with Source Code Highlighter .
$login = " " ;
$amount = floatval(__); // floatval , "99.00" "99"
$id = ____;
$pwd1 = "__#1" ;
$signature = md5($login . ":" . $amount . ":" . $id . ":" . $pwd1);
* This source code was highlighted with Source Code Highlighter .
$id = intval($_POST[ 'InvId' ]); //
$pwd2 = "__#2" ;
$sum = ________;
/*
.
- "ERR"
*/
if ( $sum != floatval($_POST[ 'OutSum' ]) ) {
//
echo "ERR: invalid amount" ;
exit();
}
if ( strtolower($_POST[ 'SignatureValue' ]) != strtolower(md5($_POST[ 'OutSum' ] . ":" . $id . ":" . $pwd2)) ) {
//
echo "ERR: invalid signature" ;
exit();
}
// :
// , ,
//
echo "OK" . $id;
exit();
* This source code was highlighted with Source Code Highlighter .
Source: https://habr.com/ru/post/82998/
All Articles