Skip to content

Commit

Permalink
Merge pull request #182 from paynl/feature/PLUG-3436
Browse files Browse the repository at this point in the history
PLUG-3436 - Add character limit to firstname
  • Loading branch information
woutse authored May 3, 2024
2 parents 2ffa8a8 + 39e2a5b commit df5e94e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Model/PayPaymentCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ private function getShippingAddress()
}

$shippingAddress = [
'initials' => $arrShippingAddress['firstname'],
'initials' => mb_substr($arrShippingAddress['firstname'], 0, 32),
'lastName' => $arrShippingAddress['lastname'],
];
$arrAddress2 = \Paynl\Helper::splitAddress($arrShippingAddress['street']);
Expand All @@ -358,7 +358,7 @@ private function getEnduserData()
if ($arrBillingAddress) {
$arrBillingAddress = $arrBillingAddress->toArray();
$enduser = [
'initials' => $arrBillingAddress['firstname'],
'initials' => mb_substr($arrBillingAddress['firstname'], 0, 32),
'lastName' => $arrBillingAddress['lastname'],
'phoneNumber' => payHelper::validatePhoneNumber($arrBillingAddress['telephone']),
'emailAddress' => $arrBillingAddress['email'],
Expand Down Expand Up @@ -403,7 +403,7 @@ private function getInvoiceAddress()
$arrBillingAddress = $arrBillingAddress->toArray();

$invoiceAddress = [
'initials' => $arrBillingAddress['firstname'] ?? '',
'initials' => mb_substr($arrBillingAddress['firstname'] ?? '', 0, 32),
'lastName' => $arrBillingAddress['lastname'] ?? '',
];

Expand Down

0 comments on commit df5e94e

Please sign in to comment.