當前位置: 首頁>>代碼示例>>PHP>>正文


PHP payment::after_order_create方法代碼示例

本文整理匯總了PHP中payment::after_order_create方法的典型用法代碼示例。如果您正苦於以下問題:PHP payment::after_order_create方法的具體用法?PHP payment::after_order_create怎麽用?PHP payment::after_order_create使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在payment的用法示例。


在下文中一共展示了payment::after_order_create方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: unset

        $order->query($_order_id);
        $db->Execute('update ' . TABLE_ORDERS . ' set last_modified=now(), orders_status = ' . MODULE_PAYMENT_ALIPAYFOR_ORDER_STATUS_ID . ' where orders_id = ' . (int) $_order_id);
        $insert_id = $_order_id;
        unset($_SESSION['alipay_forcard_success_order_id']);
        if (isset($_SESSION['alipay_forcard_pending_order_id'])) {
            unset($_SESSION['alipay_forcard_pending_order_id']);
        }
        $order->send_order_email($insert_id, 2);
    } else {
        zen_redirect(zen_href_link(FILENAME_DEFAULT));
    }
} else {
    // create the order record
    $insert_id = $order->create($order_totals, 2);
    $zco_notifier->notify('NOTIFY_CHECKOUT_PROCESS_AFTER_ORDER_CREATE');
    $payment_modules->after_order_create($insert_id);
    $zco_notifier->notify('NOTIFY_CHECKOUT_PROCESS_AFTER_PAYMENT_MODULES_AFTER_ORDER_CREATE');
    // store the product info to the order
    $order->create_add_products($insert_id);
    $_SESSION['order_number_created'] = $insert_id;
    $zco_notifier->notify('NOTIFY_CHECKOUT_PROCESS_AFTER_ORDER_CREATE_ADD_PRODUCTS');
    //send email notifications
    $order->send_order_email($insert_id, 2);
}
$zco_notifier->notify('NOTIFY_CHECKOUT_PROCESS_AFTER_SEND_ORDER_EMAIL');
// clear slamming protection since payment was accepted
if (isset($_SESSION['payment_attempt'])) {
    unset($_SESSION['payment_attempt']);
}
/**
 * Calculate order amount for display purposes on checkout-success page as well as adword campaigns etc
開發者ID:mahuidong,項目名稱:doc,代碼行數:31,代碼來源:checkout_process.php


注:本文中的payment::after_order_create方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。