diff --git a/webht/third_party/paypal/controllers/index.php b/webht/third_party/paypal/controllers/index.php index ced0d670..e57a148e 100644 --- a/webht/third_party/paypal/controllers/index.php +++ b/webht/third_party/paypal/controllers/index.php @@ -1583,6 +1583,7 @@ class Index extends CI_Controller { $orderid_info = $this->analysis_orderid($data['note']->pn_invoice); if (!empty($orderid_info)) { $orderid_info = json_decode($orderid_info); + $data['old_order_info'] = $orderid_info; if ($orderid_info->ordertype === 'TP' || $orderid_info->ordertype === 'A') { $orderid_info->ordertype = 'B'; } @@ -1598,10 +1599,11 @@ class Index extends CI_Controller { if ($neworder !== null) { $neworder_id = $this->analysis_orderid($neworder); $neworder_id = json_decode($neworder_id); + $data['new_order_info'] = $neworder_id; if ($neworder_id->ordertype === 'TP') { $neworder_id->ordertype = 'B'; } - if ( ! empty($neworder_id)) { + if (!empty($neworder_id)) { $data['order_info'] = $this->Paypal_model->get_order($neworder_id->orderid, true, $neworder_id->ordertype); } }