@@ 116-126 (lines=11) @@ | ||
113 | $transaction->return_request_object = json_encode($mobilpayReturnObject, true); |
|
114 | $updatedIsSuccessful = $transaction->update(); |
|
115 | ||
116 | if ($updatedIsSuccessful) { |
|
117 | $this->actionsAndNotifications->setNotifications([ |
|
118 | 'status' => $transaction->status, |
|
119 | 'request_status' => $transaction->request_status, |
|
120 | 'id_transaction_created' => $transaction->id, |
|
121 | ]); |
|
122 | $this->actionsAndNotifications->setActions([ |
|
123 | 'transaction' => 'successfully updated', |
|
124 | 'time' => date('Y-m-d H:i:s') |
|
125 | ]); |
|
126 | } |
|
127 | ||
128 | $this->actionsAndNotifications->afterUpdatingTransaction($transaction, $updatedIsSuccessful); |
|
129 | ||
@@ 147-156 (lines=10) @@ | ||
144 | $transaction->status = $errorMessage; |
|
145 | $addTransactionIsSuccessful = $transaction->save(); |
|
146 | ||
147 | if ($addTransactionIsSuccessful) { |
|
148 | $this->actionsAndNotifications->setNotifications([ |
|
149 | 'status' => $transaction->status, |
|
150 | 'request_status' => $transaction->request_status, |
|
151 | ]); |
|
152 | $this->actionsAndNotifications->setActions([ |
|
153 | 'error transaction' => 'successfully created', |
|
154 | 'time' => date('Y-m-d H:i:s') |
|
155 | ]); |
|
156 | } |
|
157 | ||
158 | $this -> actionsAndNotifications ->onTransactionError($errorCode, $errorType, $errorMessage, $mobilpayReturnObject); |
|
159 |