本文整理汇总了PHP中Checkout::get_step_for_type方法的典型用法代码示例。如果您正苦于以下问题:PHP Checkout::get_step_for_type方法的具体用法?PHP Checkout::get_step_for_type怎么用?PHP Checkout::get_step_for_type使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Checkout
的用法示例。
在下文中一共展示了Checkout::get_step_for_type方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: after_extern_process
public function after_extern_process()
{
global $temp_orders_id;
if (isset($_POST['Hash']) && isset($_POST['Uid'])) {
if ($_POST['Status'] == 'DE') {
$this->errors[$this->type] = Translate('Uw betaling werd geweigerd.');
} else {
if ($_GET['Status'] == 'CA') {
$this->errors[$this->type] = Translate('Uw betaling werd geannuleerd.');
} else {
if ($_GET['Status'] == 'EX') {
$this->errors[$this->type] = Translate('Er was een technisch probleem, contacteer ons voor meer info.');
} else {
if ($_GET['Status'] == 'TI') {
$this->errors[$this->type] = Translate('Uw sessie is verlopen, probeer a.u.b. opnieuw.');
}
}
}
}
$_GET['force_checkout_step'] = Checkout::get_step_for_type($this->type);
$_POST['checkout_step'] = Checkout::last_active_step();
}
return;
}
示例2: after_extern_process
public function after_extern_process()
{
global $temp_orders_id;
if (isset($_GET['SHASIGN'])) {
include DIR_WS_CLASSES . 'sha.php';
$get_params = array();
foreach ($_GET as $key => $value) {
if ($key != 'SHASIGN' && $key != 'force_checkout_step' && $key != 'customer_id' && $key != 'osCsid' && trim($value) != '') {
$get_params[strtoupper($key)] = $value;
}
}
ksort($get_params);
$temp_data = Checkout::get_all_data_from_temp_db($temp_orders_id);
$hash_string = '';
foreach ($get_params as $key => $value) {
$hash_string .= strtoupper($key) . '=' . $value . $this->instances[$temp_data[$temp_orders_id]['orders']['payment_method']]['sha_string'];
}
$sha = new SHA();
$hasharray = $sha->hash_string($hash_string);
$hash = strtoupper($sha->hash_to_string($hasharray));
if ($_GET['SHASIGN'] != $hash) {
//wrong ogone parameters
$this->errors[$temp_data[$temp_orders_id]['orders']['payment_method']] = Translate('Er is iets fout gelopen bij de afhandeling van uw betaling. Contacteer ons voor meer uitleg.');
}
$_GET['force_checkout_step'] = Checkout::get_step_for_type($this->type);
$_POST['checkout_step'] = Checkout::last_active_step();
}
return;
}
示例3: after_extern_process
public function after_extern_process()
{
global $temp_orders_id;
if (isset($_GET['tx'])) {
$_GET['force_checkout_step'] = Checkout::get_step_for_type($this->type);
$_POST['checkout_step'] = Checkout::last_active_step();
}
return;
}