From 01227d6e898fd875d352dcdc61e41d60e70d0202 Mon Sep 17 00:00:00 2001 From: woutse Date: Wed, 10 Feb 2021 00:13:33 +0100 Subject: [PATCH] Updated composer --- Plugin/OrderPaymentAdditionalInformation.php | 6 +----- composer.json | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Plugin/OrderPaymentAdditionalInformation.php b/Plugin/OrderPaymentAdditionalInformation.php index 170abe3c..dac7ce8b 100644 --- a/Plugin/OrderPaymentAdditionalInformation.php +++ b/Plugin/OrderPaymentAdditionalInformation.php @@ -24,12 +24,8 @@ public function afterGetAdditionalInformation(Payment $subject, $result) if (empty($result['dob']) && $order->getCustomerDob()) { $result['dob'] = (new \DateTime($order->getCustomerDob()))->format('Y-m-d'); } - if (empty($result['gender']) && ($order->getCustomerGender() || !empty($order->getCustomerId()))) { + if (empty($result['gender']) && $order->getCustomerGender()) { $gender = $order->getCustomerGender(); - if (empty($gender) && !empty($order->getCustomerId())) { - $customer = $this->customerRepository->getById($order->getCustomerId()); - $gender = $customer->getGender(); - } if (!empty($gender)) { $result['gender'] = $gender; } diff --git a/composer.json b/composer.json index 54dfd818..51cbc8ec 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "paynl/magento2-plugin", "description": "PAY. Magento2 Payment methods", "type": "magento2-module", - "version": "1.7.0", + "version": "1.7.1", "require": { "magento/module-sales": "100 - 103", "magento/module-payment": "100 - 103",