Skip to content

Commit

Permalink
Updated composer
Browse files Browse the repository at this point in the history
  • Loading branch information
woutse committed Feb 9, 2021
1 parent 3f20cae commit 01227d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions Plugin/OrderPaymentAdditionalInformation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 01227d6

Please sign in to comment.