Skip to content

Commit

Permalink
Fix PHP 8.3 warning in authorizenet_sim payment
Browse files Browse the repository at this point in the history
  • Loading branch information
condor2 authored Dec 22, 2023
1 parent 33c9c4b commit d7ba7e8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function callback() {
if (md5($this->config->get('authorizenet_sim_response_key') . $this->request->post['x_login'] . $this->request->post['x_trans_id'] . $this->request->post['x_amount']) == strtolower($this->request->post['x_MD5_Hash'])) {
$this->load->model('checkout/order');

$order_info = $this->model_checkout_order->getOrder($details['x_invoice_num']);
$order_info = $this->model_checkout_order->getOrder($this->request->post['x_invoice_num']);

if ($order_info && $this->request->post['x_response_code'] == '1') {
$message = '';
Expand All @@ -71,7 +71,7 @@ public function callback() {
$message .= 'Receipt: ' . $this->request->post['exact_ctr'];
}

$this->model_checkout_order->addOrderHistory($details['x_invoice_num'], $this->config->get('authorizenet_sim_order_status_id'), $message, true);
$this->model_checkout_order->addOrderHistory($this->request->post['x_invoice_num'], $this->config->get('authorizenet_sim_order_status_id'), $message, true);

$this->response->redirect($this->url->link('checkout/success'));
} else {
Expand Down

0 comments on commit d7ba7e8

Please sign in to comment.