From 10bea91e6b5a71d811ec7fef9e0439b4d56944f9 Mon Sep 17 00:00:00 2001 From: Tigran <62335544+tikohov20@users.noreply.github.com> Date: Thu, 14 Apr 2022 13:08:22 +0400 Subject: [PATCH] Update Webhook confirmed iban field (#10) * Update Index.php * bump plugin version --- Controller/Webhooks/Index.php | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Controller/Webhooks/Index.php b/Controller/Webhooks/Index.php index 414fa3e..4fad45d 100644 --- a/Controller/Webhooks/Index.php +++ b/Controller/Webhooks/Index.php @@ -112,7 +112,7 @@ public function handlePending($params): array */ public function handleConfirmed($params): array { - $viban = @$params['viban']; + $viban = @$params['bank_account']['iban']; $monduId = @$params['order_uuid']; $externalReferenceId = @$params['external_reference_id']; $order = $this->_orderFactory->create()->loadByIncrementId($externalReferenceId); diff --git a/composer.json b/composer.json index f242719..bf6c239 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "mondu/magento2-payment", "description": "Mondu payment method for magento 2", "type": "magento2-module", - "version": "1.0.3", + "version": "1.0.4", "license": [ "MIT" ],