Вход Регистрация
Файл: vkolhoze.com/pay_rubi/unitpay/init_key.php
Строк: 26
<?php
if(!empty($_POST['phone'])){

if(isset(
$_GET['mts']))$cost=35; else $cost=25;
$phone=htmlspecialchars($_POST['phone']);
$ku['id']=htmlspecialchars($_POST['kuid']);

$response =
json_decode(file_get_contents('http://unitpay.ru/api/get/partner?method=billing.mc.initPayment&params[phone]='.$phone.'&params[sum]='.$cost.'&params[account]='.$ku['id'].'&params[projectId]=7132'));
 
if (isset(
$response->result)) {
    echo 
'Успех';
header("Location: http://vkolhoze.com/payment/mobile/ok-$cost ");exit;
} else if (!empty(
$result->error->message)) {
    echo 
'Ошибка UnitPay: '.$result->error->message;
header("Location: http://vkolhoze.com/payment/mobile/error-$result->error->message ");exit;
} else {
    echo 
'Ошибка соединения '.$data.'';
header("Location: http://vkolhoze.com/payment/mobile/error-connect");exit;
}
}

?>
Онлайн: 3
Реклама