Skip to content

Commit 07e5af2

Browse files
author
Ryan Sexton
committed
Fixed getShippingLastName() was being used to seed shipTo->firstName.
1 parent 439bb6e commit 07e5af2

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)