本文整理汇总了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