Skip to content

Commit

Permalink
Fixed getShippingLastName() was being used to seed shipTo->firstName.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Sexton committed Jul 16, 2016
1 parent 439bb6e commit 07e5af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Message/AIMAbstractRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ protected function addBillingData(\SimpleXMLElement $data)
$req->billTo->zip = $card->getBillingPostcode();
$req->billTo->country = $card->getBillingCountry();

$req->shipTo->firstName = $card->getShippingLastName();
$req->shipTo->firstName = $card->getShippingFirstName();
$req->shipTo->lastName = $card->getShippingLastName();
$req->shipTo->company = $card->getShippingCompany();
$req->shipTo->address = trim($card->getShippingAddress1() . " \n" . $card->getShippingAddress2());
Expand Down

0 comments on commit 07e5af2

Please sign in to comment.