本文整理汇总了PHP中Checkout::send_order_error_mail方法的典型用法代码示例。如果您正苦于以下问题:PHP Checkout::send_order_error_mail方法的具体用法?PHP Checkout::send_order_error_mail怎么用?PHP Checkout::send_order_error_mail使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Checkout
的用法示例。
在下文中一共展示了Checkout::send_order_error_mail方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: after_confirm
function after_confirm()
{
global $temp_orders_id;
$temp_data = Checkout::get_all_data_from_temp_db($temp_orders_id);
//get all orders data
$data = '';
foreach ($_GET as $key => $value) {
$data .= $key . ': ' . "\n";
$data .= $value . "\n\n";
}
tep_db_query('INSERT INTO payment_log (type, data, date) VALUES ("' . get_class($this) . '", "' . $data . '", NOW())');
tep_db_query('DELETE FROM payment_log WHERE date < DATE_SUB(NOW(), INTERVAL 30 DAY)');
/*PAYMENT ACCEPTED*/
if ($_GET['STATUS'] == '9') {
tep_db_query('UPDATE temp_orders SET orders_status = 2 WHERE orders_id = "' . $temp_orders_id . '"');
} else {
if ($_GET['STATUS'] == '5') {
tep_db_query('UPDATE temp_orders SET orders_status = 2 WHERE orders_id = "' . $temp_orders_id . '"');
} else {
if ($_GET['STATUS'] == '51' || $_GET['STATUS'] == '91' || $_GET['STATUS'] == '4' || $_GET['STATUS'] == '41' || $_GET['STATUS'] == '52' || $_GET['STATUS'] == '59' || $_GET['STATUS'] == '92') {
//do nothing
} else {
if ($_GET['STATUS'] == '2' || $_GET['STATUS'] == '84' || $_GET['STATUS'] == '93') {
tep_db_query('UPDATE temp_orders SET orders_status = 53 WHERE orders_id = "' . $temp_orders_id . '"');
Checkout::send_order_error_mail(Translate('Ogone betaling geweigerd voor bestelling') . ': ' . $temp_orders_id, sprintf(Translate('De betaling voor bestelling %s is geweigerd door ogone.'), $temp_orders_id));
$_GET['force_checkout_step'] = Checkout::get_step_for_type($this->type);
$this->errors[$temp_data[$temp_orders_id]['orders']['payment_method']] = Translate('Uw betaling werd geweigerd.');
} else {
if ($_GET['STATUS'] == '1' || $_GET['STATUS'] == '6' || $_GET['STATUS'] == '64' || $_GET['STATUS'] == '7' || $_GET['STATUS'] == '74') {
tep_db_query('UPDATE temp_orders SET orders_status = 50 WHERE orders_id = "' . $temp_orders_id . '"');
$_GET['force_checkout_step'] = Checkout::get_step_for_type($this->type);
$this->errors[$temp_data[$temp_orders_id]['orders']['payment_method']] = Translate('Uw betaling werd geannuleerd.');
} else {
if ($_GET['STATUS'] == '0') {
tep_db_query('UPDATE temp_orders SET orders_status = 53 WHERE orders_id = "' . $temp_orders_id . '"');
Checkout::send_order_error_mail(Translate('Ongeldige Ogone betaling voor bestelling') . ': ' . $temp_orders_id, sprintf(Translate('De betaling voor bestelling %s is ongeldig verklaard door ogone.'), $temp_orders_id));
$_GET['force_checkout_step'] = Checkout::get_step_for_type($this->type);
$this->errors[$temp_data[$temp_orders_id]['orders']['payment_method']] = Translate('Uw betaling is ongeldig.');
}
}
}
}
}
}
return $this->errors;
}
示例2: after_confirm
function after_confirm()
{
global $temp_orders_id;
$temp_data = Checkout::get_all_data_from_temp_db($temp_orders_id);
//get all orders data
$data = '';
foreach ($_POST as $key => $value) {
$data .= $key . ': ' . "\n";
$data .= $value . "\n\n";
}
tep_db_query('INSERT INTO payment_log (type, data, date) VALUES ("' . get_class($this) . '", "' . $data . '", NOW())');
tep_db_query('DELETE FROM payment_log WHERE date < DATE_SUB(NOW(), INTERVAL 30 DAY)');
/*PAYMENT AUTHORISED*/
if ($_GET['Status'] == 'AU') {
tep_db_query('UPDATE temp_orders SET orders_status = 2 WHERE orders_id = "' . $temp_orders_id . '"');
} else {
if ($_POST['Status'] == 'DE') {
tep_db_query('UPDATE temp_orders SET orders_status = 53 WHERE orders_id = "' . $temp_orders_id . '"');
Checkout::send_order_error_mail(Translate('Europabank betaling geweigerd voor bestelling') . ': ' . $temp_orders_id, sprintf(Translate('De betaling voor bestelling %s is geweigerd door Europabank.'), $temp_orders_id));
$_GET['force_checkout_step'] = Checkout::get_step_for_type($this->type);
$this->errors[$temp_data[$temp_orders_id]['orders']['payment_method']] = Translate('Uw betaling werd geweigerd.');
} else {
if ($_POST['Status'] == 'CA') {
tep_db_query('UPDATE temp_orders SET orders_status = 50 WHERE orders_id = "' . $temp_orders_id . '"');
$_GET['force_checkout_step'] = Checkout::get_step_for_type($this->type);
$this->errors[$temp_data[$temp_orders_id]['orders']['payment_method']] = Translate('Uw betaling werd geannuleerd.');
} else {
if ($_POST['Status'] == 'EX') {
tep_db_query('UPDATE temp_orders SET orders_status = 53 WHERE orders_id = "' . $temp_orders_id . '"');
Checkout::send_order_error_mail(Translate('Technisch probleem bij europabank voor bestelling') . ': ' . $temp_orders_id, sprintf(Translate('Er was een technisch probleem voor bestelling %s bij europabank.'), $temp_orders_id));
$_GET['force_checkout_step'] = Checkout::get_step_for_type($this->type);
$this->errors[$temp_data[$temp_orders_id]['orders']['payment_method']] = Translate('Er was een technisch probleem, contacteer ons voor meer info.');
} else {
if ($_POST['Status'] == 'TI') {
tep_db_query('UPDATE temp_orders SET orders_status = 53 WHERE orders_id = "' . $temp_orders_id . '"');
Checkout::send_order_error_mail(Translate('Timed out bij europabank voor bestelling') . ': ' . $temp_orders_id, sprintf(Translate('Er was een time out voor bestelling %s bij europabank.'), $temp_orders_id));
$_GET['force_checkout_step'] = Checkout::get_step_for_type($this->type);
$this->errors[$temp_data[$temp_orders_id]['orders']['payment_method']] = Translate('Uw sessie is verlopen, probeer a.u.b. opnieuw.');
}
}
}
}
}
return $this->errors;
}
示例3: tep_db_query
//do nothing
break;
case Icepay_StatusCode::SUCCESS:
tep_db_query('UPDATE orders SET orders_status = 2 WHERE orders_id = "' . $temp_data[$temp_orders_id]['orders']['processed_order_id'] . '"');
Checkout::send_order_error_mail(Translate('Icepay betaling is goedgekeurd voor weborder') . ': ' . $temp_data[$temp_orders_id]['orders']['processed_order_id'], sprintf(Translate('De betaling voor weborder %s is goedgekeurd door Icepay.'), $temp_data[$temp_orders_id]['orders']['processed_order_id']));
break;
case Icepay_StatusCode::ERROR:
//Redirect to cart
tep_db_query('UPDATE orders SET orders_status = 53 WHERE orders_id = "' . $temp_data[$temp_orders_id]['orders']['processed_order_id'] . '"');
Checkout::send_order_error_mail(Translate('Ongeldige Icepay betaling voor weborder') . ': ' . $temp_data[$temp_orders_id]['orders']['processed_order_id'], sprintf(Translate('De betaling voor weborder %s is ongeldig verklaard door Icepay.'), $temp_data[$temp_orders_id]['orders']['processed_order_id']));
break;
case Icepay_StatusCode::CHARGEBACK:
//Redirect to cart
tep_db_query('UPDATE orders SET orders_status = 51 WHERE orders_id = "' . $temp_data[$temp_orders_id]['orders']['processed_order_id'] . '"');
Checkout::send_order_error_mail(Translate('Terugboeking Icepay betaling gestart voor weborder') . ': ' . $temp_data[$temp_orders_id]['orders']['processed_order_id'], sprintf(Translate('De terugboeking voor weborder %s is gestart.'), $temp_data[$temp_orders_id]['orders']['processed_order_id']));
break;
case Icepay_StatusCode::REFUND:
//Redirect to cart
tep_db_query('UPDATE orders SET orders_status = 52 WHERE orders_id = "' . $temp_data[$temp_orders_id]['orders']['processed_order_id'] . '"');
Checkout::send_order_error_mail(Translate('Icepay betaling is terugbetaald voor weborder') . ': ' . $temp_data[$temp_orders_id]['orders']['processed_order_id'], sprintf(Translate('De betaling voor weborder %s is terugbetaald.'), $temp_data[$temp_orders_id]['orders']['processed_order_id']));
break;
}
} else {
//Order wasn't made yet...
}
} else {
die("Unable to validate postback data");
}
} catch (Exception $e) {
echo $e->getMessage();
}
示例4: after_confirm
function after_confirm()
{
global $temp_orders_id;
$data = '';
foreach ($_GET as $key => $value) {
$data .= $key . ': ' . "\n";
$data .= $value . "\n\n";
}
tep_db_query('INSERT INTO payment_log (type, data, date) VALUES ("' . get_class($this) . '", "' . $data . '", NOW())');
tep_db_query('DELETE FROM payment_log WHERE date < DATE_SUB(NOW(), INTERVAL 30 DAY)');
$icepay = new Icepay_Result();
$icepay->setMerchantID($this->instances[$this->temp_data[$temp_orders_id]['orders']['payment_method']]['merchant_id'])->setSecretCode($this->instances[$this->temp_data[$temp_orders_id]['orders']['payment_method']]['secret_code'])->enableLogging()->logToFile(true, realpath("../logs"));
try {
if ($icepay->validate()) {
switch ($icepay->getStatus()) {
case Icepay_StatusCode::OPEN:
//do nothing
break;
case Icepay_StatusCode::SUCCESS:
tep_db_query('UPDATE temp_orders SET orders_status = 2 WHERE orders_id = "' . $temp_orders_id . '"');
break;
case Icepay_StatusCode::ERROR:
//Redirect to cart
tep_db_query('UPDATE temp_orders SET orders_status = 53 WHERE orders_id = "' . $temp_orders_id . '"');
Checkout::send_order_error_mail(Translate('Ongeldige Icepay betaling voor bestelling') . ': ' . $temp_orders_id, sprintf(Translate('De betaling voor bestelling %s is ongeldig verklaard door Icepay.'), $temp_orders_id));
$_GET['force_checkout_step'] = Checkout::get_step_for_type($this->type);
$this->errors[$this->temp_data[$temp_orders_id]['orders']['payment_method']] = Translate($icepay->getStatus(true));
break;
}
}
} catch (Exception $e) {
echo $e->getMessage();
$this->errors[$this->type] = Translate($e->getMessage());
}
return $this->errors;
}