当前位置: 首页>>代码示例>>PHP>>正文


PHP Checkout::send_order_error_mail方法代码示例

本文整理汇总了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;
 }
开发者ID:CristianCCIT,项目名称:shop4office,代码行数:46,代码来源:Ogone_module.php

示例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;
 }
开发者ID:CristianCCIT,项目名称:shop4office,代码行数:45,代码来源:Europabank_module.php

示例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();
}
开发者ID:CristianCCIT,项目名称:shop4office,代码行数:31,代码来源:icepay_postback.php

示例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;
 }
开发者ID:CristianCCIT,项目名称:shop4office,代码行数:36,代码来源:Icepay_module.php


注:本文中的Checkout::send_order_error_mail方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。