From 28e3aa2e952f81e022651b8b9a847a05179600fc Mon Sep 17 00:00:00 2001 From: sriramv Date: Thu, 14 Sep 2023 11:27:23 +0530 Subject: [PATCH] orderDAte:GWM --- app/Controllers/PaymentController.php | 1 + app/Models/Transaction_model.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Controllers/PaymentController.php b/app/Controllers/PaymentController.php index 4215bf8..4269136 100644 --- a/app/Controllers/PaymentController.php +++ b/app/Controllers/PaymentController.php @@ -341,6 +341,7 @@ public function processPayment() $TrancactionData['transaction_id'] = $result['payment']['id']; $TrancactionData['payment_order_id'] = $result['payment']['order_id']; $TrancactionData['transaction'] = json_encode($response->getResult()); + $TrancactionData['created_at'] = date("Y-m-d H:i:s"); $update = $this->TransactionModel->where('member_id', session()->get('logged_user')) ->where('order_id', $order_id ) ->set($TrancactionData)->update(); diff --git a/app/Models/Transaction_model.php b/app/Models/Transaction_model.php index 5cfd761..478d893 100644 --- a/app/Models/Transaction_model.php +++ b/app/Models/Transaction_model.php @@ -16,7 +16,7 @@ class Transaction_model extends Model - protected $allowedFields = ['status','member_id','transaction_id','payment_order_id','order_id','transaction','is_mail_triggered', 'first_name','last_name','address', 'city' , 'state' , 'zip_code' , 'country', 'order']; + protected $allowedFields = ['status','member_id','transaction_id','payment_order_id','order_id','transaction','is_mail_triggered', 'first_name','last_name','address', 'city' , 'state' , 'zip_code' , 'country', 'order' , 'created_at'];