Beispiel #1
0
         $_SESSION['errorCards'] = $status;
         header("Location: /bill/fail_card/");
         exit;
     }
 } else {
     if ($_GET['orderId'] == $_SESSION['quick_ver_card_num']) {
         // Верификация
         $walletAlpha->api->getAccessData('bind');
         $status = $walletAlpha->api->getOrderStatus($_SESSION['quick_ver_card_num']);
         if ($status['OrderStatus'] == API_AlphaBank::STATUS_SUCCESS_PAYMENT) {
             $res = $walletAlpha->api->reverse($_SESSION['quick_ver_card_num']);
             require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/Verification.php';
             $_SESSION['verifyStatus'] = array('status' => 1);
             $_SESSION['is_verify'] = 't';
             $verification = new Verification();
             $verification->card(get_uid(), $status['Pan']);
             $redirect_part = "?vok=1&vuse=card";
         } else {
             $redirect_part = "?verror=1&vuse=card";
         }
         ?>
         <html><body><script>window.close();</script></body></html>
         <?php 
         exit;
     } elseif ($_SESSION['quickpro_card_orderid'] == $_GET['orderId']) {
         // Быстрая покупка pro
         $walletAlpha->api->getAccessData('bind');
         $status = $walletAlpha->api->getOrderStatus($_SESSION['quickpro_card_orderid']);
         if ($status['OrderStatus'] == API_AlphaBank::STATUS_SUCCESS_PAYMENT) {
             require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/account.php";
             $account = new account();