|
|
|
@ -1325,6 +1325,9 @@ class Index extends CI_Controller {
|
|
|
|
|
$orderid_info = $this->analysis_orderid($data['note']->pn_invoice);
|
|
|
|
|
if (!empty($orderid_info)) {
|
|
|
|
|
$orderid_info = json_decode($orderid_info);
|
|
|
|
|
if ($orderid_info->ordertype === 'TP') {
|
|
|
|
|
$orderid_info->ordertype = 'B';
|
|
|
|
|
}
|
|
|
|
|
if ($orderid_info->ordertype === 'T') {
|
|
|
|
|
$data['gai_info'] = $this->Paypal_model->get_money_t($pn_txn_id);
|
|
|
|
|
} elseif ($orderid_info->ordertype === 'B') {
|
|
|
|
@ -1337,6 +1340,9 @@ class Index extends CI_Controller {
|
|
|
|
|
if ($neworder !== null) {
|
|
|
|
|
$neworder_id = $this->analysis_orderid($neworder);
|
|
|
|
|
$neworder_id = json_decode($neworder_id);
|
|
|
|
|
if ($neworder_id->ordertype === 'TP') {
|
|
|
|
|
$neworder_id->ordertype = 'B';
|
|
|
|
|
}
|
|
|
|
|
if ( ! empty($neworder_id)) {
|
|
|
|
|
$data['order_info'] = $this->Paypal_model->get_order($neworder_id->orderid, true, $neworder_id->ordertype);
|
|
|
|
|
}
|
|
|
|
|