Skip to content

Commit

Permalink
Merge pull request #46 from fenzig27/pr-invalid-shipping-firstname
Browse files Browse the repository at this point in the history
Fixed getShippingLastName() was being used to seed shipTo->firstName.
  • Loading branch information
judgej authored Jul 16, 2016
2 parents 439bb6e + 07e5af2 commit 6e1990f
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 6e1990f

Please sign in to comment.