Skip to content

Commit

Permalink
Merge pull request #7 from paynl/PLUG-75
Browse files Browse the repository at this point in the history
Added gender to enduser information
  • Loading branch information
woutse authored Dec 12, 2019
2 parents 3721bd5 + e4bfdf2 commit 92749ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions paynlpaymentmethods/paynlpaymentmethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,7 @@ private function _getAddressData(Cart $cart)
$enduser['birthDate'] = $customer->birthday;
$enduser['phoneNumber'] = $objShippingAddress->phone ? $objShippingAddress->phone : $objShippingAddress->phone_mobile;
$enduser['emailAddress'] = $customer->email;
$enduser['gender'] = $customer->id_gender == 1 ? 'M' : ($customer->id_gender == 2 ? 'F' : '');

list($shipStreet, $shipHousenr) = Paynl\Helper::splitAddress(trim($objShippingAddress->address1 . ' ' . $objShippingAddress->address2));
list($invoiceStreet, $invoiceHousenr) = Paynl\Helper::splitAddress(trim($objInvoiceAddress->address1 . ' ' . $objInvoiceAddress->address2));
Expand Down

0 comments on commit 92749ff

Please sign in to comment.