Skip to content

Commit

Permalink
Merge pull request #22 from jornPay/master
Browse files Browse the repository at this point in the history
Strip billing last name on transaction start
  • Loading branch information
Andy Pieters authored Aug 1, 2018
2 parents b9bccf8 + 7f5b1d9 commit 70982e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/code/community/Pay/Payment/Model/Paymentmethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ private static function getEnduserData(Mage_Sales_Model_Order $order)
if ($enduserAddress) {
$enduser = array_merge($enduser, array(
'initials' => static::getFirstname($enduserAddress),
'lastName' => $enduserAddress->getLastname(),
'lastName' => substr($enduserAddress->getLastname(),0,32),
'phoneNumber' => $enduserAddress->getTelephone(),
'emailAddress' => $enduserAddress->getEmail()
));
Expand Down Expand Up @@ -463,7 +463,7 @@ private static function getBillingAddress(Mage_Sales_Model_Order $order)

$arrBillingAddress = array(
'initials' => static::getFirstname($objBillingAddress),
'lastName' => $objBillingAddress->getLastname(),
'lastName' => substr($objBillingAddress->getLastname(),0,32),
'streetName' => $address,
'houseNumber' => $housenumber,
'zipCode' => $objBillingAddress->getPostcode(),
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Pay/Payment/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config>
<modules>
<Pay_Payment>
<version>3.12.6</version>
<version>3.12.8</version>
</Pay_Payment>
</modules>
<global>
Expand Down

0 comments on commit 70982e1

Please sign in to comment.