From fb661f6c8924eba7249fbe7c5953bcc76ed1f6a6 Mon Sep 17 00:00:00 2001 From: ADDCreative <2039130+ADDCreative@users.noreply.github.com> Date: Mon, 4 Mar 2024 16:35:19 +0000 Subject: [PATCH] Add BluePay Hosted enabled check --- .../catalog/controller/extension/payment/bluepay_hosted.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upload/catalog/controller/extension/payment/bluepay_hosted.php b/upload/catalog/controller/extension/payment/bluepay_hosted.php index 010949f7ffe..488cc530e4d 100644 --- a/upload/catalog/controller/extension/payment/bluepay_hosted.php +++ b/upload/catalog/controller/extension/payment/bluepay_hosted.php @@ -67,7 +67,7 @@ public function callback() { $response_data = $this->request->get; - if (isset($this->session->data['order_id'])) { + if (isset($this->session->data['order_id']) && $this->config->get('payment_bluepay_hosted_status')) { $order_info = $this->model_checkout_order->getOrder($this->session->data['order_id']); if ($response_data['Result'] == 'APPROVED') { @@ -96,4 +96,4 @@ public function adminCallback() { $this->response->addHeader('Content-Type: application/json'); $this->response->setOutput(json_encode($this->request->get)); } -} \ No newline at end of file +}