Skip to content

Commit 5863e57

Browse files
committed
Set phoneNumber billTo and phoneNumber shipTo on AIM requests.
1 parent 1a699aa commit 5863e57

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Message/AIMAbstractRequest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ protected function addBillingData(\SimpleXMLElement $data)
221221
$req->billTo->state = $card->getBillingState();
222222
$req->billTo->zip = $card->getBillingPostcode();
223223
$req->billTo->country = $card->getBillingCountry();
224+
$req->billTo->phoneNumber = $card->getBillingPhone();
224225

225226
$req->shipTo->firstName = $card->getShippingFirstName();
226227
$req->shipTo->lastName = $card->getShippingLastName();
@@ -230,6 +231,7 @@ protected function addBillingData(\SimpleXMLElement $data)
230231
$req->shipTo->state = $card->getShippingState();
231232
$req->shipTo->zip = $card->getShippingPostcode();
232233
$req->shipTo->country = $card->getShippingCountry();
234+
$req->shipTo->phoneNumber = $card->getShippingPhone();
233235
}
234236

235237
return $data;

0 commit comments

Comments
 (0)