Skip to content

Commit 6e1990f

Browse files
authored
Merge pull request #46 from fenzig27/pr-invalid-shipping-firstname
Fixed getShippingLastName() was being used to seed shipTo->firstName.
2 parents 439bb6e + 07e5af2 commit 6e1990f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Message/AIMAbstractRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ protected function addBillingData(\SimpleXMLElement $data)
222222
$req->billTo->zip = $card->getBillingPostcode();
223223
$req->billTo->country = $card->getBillingCountry();
224224

225-
$req->shipTo->firstName = $card->getShippingLastName();
225+
$req->shipTo->firstName = $card->getShippingFirstName();
226226
$req->shipTo->lastName = $card->getShippingLastName();
227227
$req->shipTo->company = $card->getShippingCompany();
228228
$req->shipTo->address = trim($card->getShippingAddress1() . " \n" . $card->getShippingAddress2());

0 commit comments

Comments
 (0)