foreach ($ferror as $error) { $ermsg .= $error . "<br>"; } $_SESSION['response_error'] = $ermsg; } if ($_SESSION['response']['status'] == 'A' || $_SESSION['response']['status'] == 'P' && $_SESSION['cardtype'] == "check") { $_SESSION['stat'] = 3; } else { if (!$_SESSION['response']['result']) { $_SESSION['stat'] = 1; } } if (isset($_POST['crosssales']) && $_SESSION['response']['result'] == 1) { //echo "first trans number:".$order->transArr['transactionId']; $xorder = new transaction_class(TRUE); $xorderArr = $xorder->buildOrderArr($_SESSION['xSaleArr']['cs_reference_ID'], $_SESSION['xSaleArr']['rd_subName']); $xorder->init_transaction($xorderArr['cs_ID'], "cs.`cs_ID`", FALSE, $xorderArr, $md, TRUE, $order->transArr['transactionId']); $xorder->transphase = $transphase; $xorder->processTransaction(); } } if (isset($_REQUEST['submit_form'])) { if (!headers_sent()) { header("HTTP/1.1 301 Moved Permanently"); header("Location: OrderProcessing.php"); exit; } } $product_description = quote_smart($_SESSION['mt_prod_desc']); $blockrebill = quote_smart($_SESSION['hid_blockrebill']); $str_firstname = quote_smart($_SESSION['firstname']);