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