Ejemplo n.º 1
0
    exit;
} elseif (isset($_POST['success'])) {
    $sum = $_SESSION['post_payment']['sum'];
    $account = new account();
    $account->GetInfo($qiwipay->uid, true);
    $bill = $DB->row("SELECT * FROM qiwi_account WHERE account_id = ? order by id desc LIMIT 1", $account->id);
    $error = $qiwipay->completeBill($error, $bill, $sum);
    var_dump($error);
    var_dump($DB->sql);
    exit;
    header("Location: /bill/");
    exit;
}
$bill = new billing(get_uid(false));
$bill->test = true;
$bill->setPaymentMethod('qiwipurse');
$created = $bill->error;
$_SESSION['post_payment'] = $_POST;
$_SESSION['referer'] = $_SERVER['HTTP_REFERER'];
?>

<h2>Тестовая оплата QIWI.Purse</h2>
<p>
Оплата услуг аккаунт #<?php 
echo get_uid(false);
?>
, сумма оплаты <?php 
echo to_money($_POST['sum'], 2);
?>
 рублей
</p>
Ejemplo n.º 2
0
if (isset($_POST['cancel'])) {
    $back_url = $_SESSION['referer'];
    unset($_SESSION['referer']);
    header("Location: {$back_url}");
    exit;
} elseif (isset($_POST['success'])) {
    $sum = $_SESSION['post_payment']['sum'];
    $bill = new billing(get_uid(false));
    $account = new osmppay();
    $error = $account->checkdeposit($op_id, $result, $sum, $bill->user['login'], rand(1, 999999999), date('YmdHis'));
    header('Location: /bill/');
    exit;
}
$bill = new billing(get_uid(false));
$bill->test = true;
$bill->setPaymentMethod('qiwi');
$created = $bill->error;
$_SESSION['post_payment'] = $_POST;
$_SESSION['referer'] = $_SERVER['HTTP_REFERER'];
?>

<h2>Тестовая оплата Терминалы OSMP</h2>
<p>
Оплата услуг аккаунт #<?php 
echo get_uid(false);
?>
, сумма оплаты <?php 
echo to_money($_POST['sum'], 2);
?>
 рублей
</p>
Ejemplo n.º 3
0
<?php

$g_page_id = "0|27";
$new_site_css = true;
$print = true;
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/stdf.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/billing.php";
$main_path = $_SERVER['DOCUMENT_ROOT'];
if (!get_uid()) {
    header('Location: /fbd.php');
    exit;
}
$content = "{$main_path}/bill/payment/print/content.php";
$header = "{$main_path}header.new.php";
$footer = "{$main_path}footer.new.html";
$js_file = array('billing.js', '/scripts/b-combo/b-combo-phonecodes.js');
$type_payment = __paramInit('string', 'type', NULL, 'webmoney');
$bill = new billing(get_uid(false));
$bill->setPage('index');
$bill->setPaymentMethod($type_payment);
if ($bill->type_menu_block == '') {
    header("Location: /403.php");
    exit;
}
include $content;