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" ],