orderDAte:GWM
This commit is contained in:
parent
22437099ae
commit
28e3aa2e95
@ -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();
|
||||
|
||||
@ -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'];
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user