From 0513d69811dc619a581340073a3aac6955288616 Mon Sep 17 00:00:00 2001 From: jakubpolomsky Date: Tue, 23 May 2017 08:24:06 +0200 Subject: [PATCH 1/2] #27 search for additional data in right places --- Model/Payment/Eps.php | 2 +- Model/Payment/Ideal.php | 2 +- Model/Payment/Installment.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Model/Payment/Eps.php b/Model/Payment/Eps.php index 21382e9..7a755e6 100644 --- a/Model/Payment/Eps.php +++ b/Model/Payment/Eps.php @@ -60,7 +60,7 @@ public function assignData(\Magento\Framework\DataObject $data) /** @var \Magento\Quote\Model\Quote\Payment $infoInstance */ $infoInstance = $this->getInfoInstance(); - $infoInstance->setAdditionalInformation('financialInstitution', $data->getData('financialInstitution')); + $infoInstance->setAdditionalInformation('financialInstitution', $data->getDataByPath('additional_data/financialInstitution')); return $this; } diff --git a/Model/Payment/Ideal.php b/Model/Payment/Ideal.php index f6764c9..b607b91 100644 --- a/Model/Payment/Ideal.php +++ b/Model/Payment/Ideal.php @@ -60,7 +60,7 @@ public function assignData(\Magento\Framework\DataObject $data) /** @var \Magento\Quote\Model\Quote\Payment $infoInstance */ $infoInstance = $this->getInfoInstance(); - $infoInstance->setAdditionalInformation('financialInstitution', $data->getData('financialInstitution')); + $infoInstance->setAdditionalInformation('financialInstitution', $data->getDataByPath('additional_data/financialInstitution')); return $this; } diff --git a/Model/Payment/Installment.php b/Model/Payment/Installment.php index 07dc50d..306f544 100644 --- a/Model/Payment/Installment.php +++ b/Model/Payment/Installment.php @@ -66,7 +66,7 @@ public function assignData(\Magento\Framework\DataObject $data) /** @var \Magento\Quote\Model\Quote\Payment $infoInstance */ $infoInstance = $this->getInfoInstance(); - $infoInstance->setAdditionalInformation('customerDob', $data->getData('customerDob')); + $infoInstance->setAdditionalInformation('customerDob', $data->getDataByPath('additional_data/customerDob')); return $this; } From d3392e30923a0853bc6a1f7f977ed89ac241a03e Mon Sep 17 00:00:00 2001 From: jakubpolomsky Date: Tue, 23 May 2017 08:30:08 +0200 Subject: [PATCH 2/2] #27 update plugin version --- Helper/Data.php | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Helper/Data.php b/Helper/Data.php index 8078415..d6de9bd 100644 --- a/Helper/Data.php +++ b/Helper/Data.php @@ -38,7 +38,7 @@ class Data extends \Magento\Framework\App\Helper\AbstractHelper { - protected $_pluginVersion = '1.0.6'; + protected $_pluginVersion = '1.0.7'; protected $_pluginName = 'Wirecard/CheckoutPage'; /** diff --git a/composer.json b/composer.json index ecb4f25..2f55cf3 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "description": "Wirecard Checkout Page extension for Magento 2", "keywords": ["wirecard", "checkout", "page", "payment", "magento2"], "homepage": "https://www.wirecard.at", - "version":"1.0.6", + "version":"1.0.7", "support": { "email": "support.at@wirecard.com", "docs": "https://guides.wirecard.com"