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


PHP orders::updatePaymentStatus方法代码示例

本文整理汇总了PHP中orders::updatePaymentStatus方法的典型用法代码示例。如果您正苦于以下问题:PHP orders::updatePaymentStatus方法的具体用法?PHP orders::updatePaymentStatus怎么用?PHP orders::updatePaymentStatus使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在orders的用法示例。


在下文中一共展示了orders::updatePaymentStatus方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: drawSingleComment

     $comment_id = $class_o->insertComment($order_id, $comment, $comment_by);
     //$comment = $class_o->retrieveCommentDetail($comment_id);
     //$comments = array($comment);
     $result = drawSingleComment($comment_id, $comment_by, time(), $comment);
     echo utf8_encode($result);
     exit;
 } elseif ($_POST['me_action'] == 'DELETECOMMENT') {
     $order_id = tep_db_prepare_input($_POST['order_id']);
     $comment_id = tep_db_prepare_input($_POST['comment_id']);
     $class_o->deleteComment($order_id, $comment_id);
     echo utf8_encode($comment_id);
     exit;
 } elseif ($_POST['me_action'] == 'UPDATEPAIDSTATUS') {
     $order_id = tep_db_prepare_input($_POST['order_id']);
     $paid_status = tep_db_prepare_input($_POST['paid_status']);
     $class_o->updatePaymentStatus($order_id, $paid_status, $session_userinfo['username']);
     $result = array();
     if ($paid_status == '1') {
         $result['class'] = 'paid';
         $result['status'] = 'ORDER PAID';
     } else {
         $result['class'] = 'unpaid';
         $result['status'] = 'ORDER UNPAID';
     }
     ajaxReturn($result);
     exit;
 } elseif ($_POST['me_action'] == 'REVIVEORDER') {
     $result = '';
     $order_id = tep_db_prepare_input($_POST['order_id']);
     $order = $class_o->retrieveDetail($order_id);
     if ($order['paid_status'] != '1') {
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:order.php

示例2: round

             $response = "";
             break;
         case 'J':
             /*NOTE:
              * notification email already sent by payone, also change bankeinzug (direct debit) method become banktransfer
              */
             //RESET BACK TO UNPAID STATUS
             //old logic >> $amount_bank_fines = round(($payi->detail['invoice_amount'] - $request['balance']) * 100);
             $amount_bank_fines = round(($request['balance'] - $payi->getBalance()) * 100);
             $payi->bankFinesAmount($amount_bank_fines / 100 * -1);
             $payi->updatePaidAmount(0);
             $payi->updateCompleteStatus('A');
             use_class("orders");
             $class_o = new orders();
             $orders_id = $payi->detail['invoice_order_id'];
             $class_o->updatePaymentStatus($orders_id, '2', 'auto-set');
             //cancelpaid because of withdrawal back
             $payi->payoneSaldo($request['balance']);
             $data = array();
             $data['orders_id'] = $orders_id;
             $data['date_withdrawal'] = $tx_time;
             $data['description'] = 'cancelation';
             //$data['additional_charge'] = ($amount_bank_fines/100)*-1;
             $data['additional_charge'] = $payi->detail['invoice_amount_bank_fines'] / 100 * -1;
             $data['repayment_amount'] = $request['balance'];
             $data['repayment_status'] = 'N';
             $class_o->banktransferWithdrawalReport($orders_id, $data);
             break;
     }
     break;
 case 'refund':
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:payone_status_updates.php

示例3: orders

<?php

use_class('orders');
$class_o = new orders();
if (isset($_POST['me_action']) && $_POST['me_action'] != '') {
    if ($_POST['me_action'] == 'SETPAYMENTSTATUS') {
        $orders_id = tep_db_prepare_input($_POST['orders_id']);
        $class_o->updatePaymentStatus($orders_id, '1', $session_userinfo['username']);
        echo utf8_encode($orders_id);
    }
    exit;
}
$csvformat = isset($_GET['format']) && $_GET['format'] == 'csv';
$orders_query = "SELECT o.orders_id, o.customers_name, o.orders_no, o.currency, bt.*, ot.value AS order_amount FROM orders o";
$orders_query .= " INNER JOIN banktransfer bt ON bt.orders_id=o.orders_id";
$orders_query .= " LEFT JOIN orders_total ot ON ot.orders_id=o.orders_id AND ot.class='ot_total'";
$orders_query .= " WHERE o.paid_status='0'";
$orders_query .= " AND o.orders_status IN (8,9,10)";
$orders_result = tep_db_query($orders_query);
$orders = array();
$orders[0]['name'] = 'Customer';
$orders[0]['bt_own'] = 'Account Owner';
$orders[0]['bt_number'] = 'Account No';
$orders[0]['bt_name'] = 'Bank Name';
$orders[0]['bt_bankno'] = 'Bank Number (BLZ)';
$orders[0]['o_number'] = 'Bestell-Nr.';
$orders[0]['price'] = 'Order Amount';
$orders[0]['i_number'] = 'Rechnungs-Nr.';
if ($csvformat) {
    $orders[0]['jgcol'] = 'Company';
}
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:orders-bankeinzug-unpaid.php


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