Skip to content

Commit

Permalink
Merge pull request #1037 from mollie/INTERNAL/undefined-index
Browse files Browse the repository at this point in the history
INTERNAL fix undefined array keys
  • Loading branch information
MarijusCoding authored Jan 29, 2025
2 parents eb31dd3 + 3e0ca1c commit 286457f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions controllers/front/return.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ public function initContent()
$this->setWarning($data['msg_details']);

Tools::redirect(Context::getContext()->link->getPageLink('cart', true));
} elseif (PaymentMethod::BANKTRANSFER === $data['mollie_info']['method']
} elseif (isset($data['mollie_info']['method'])
&& PaymentMethod::BANKTRANSFER === $data['mollie_info']['method']
&& PaymentStatus::STATUS_OPEN === $data['mollie_info']['bank_status']
) {
$data['msg_details'] = $this->module->l('The payment is still being processed. You\'ll be notified when the bank or merchant confirms the payment./merchant.', self::FILE_NAME);
Expand All @@ -141,7 +142,7 @@ public function initContent()
[
'ajax' => 1,
'action' => 'getStatus',
'transaction_id' => $data['mollie_info']['transaction_id'],
'transaction_id' => $data['mollie_info']['transaction_id'] ?? null,
'key' => $key,
'cart_id' => $idCart,
'order_number' => $orderNumber,
Expand Down

0 comments on commit 286457f

Please # to comment.