Skip to content

Commit 6501825

Browse files
author
Nate Emmons
authored
set customer email in AIMAbstractRequest
1 parent 4cef58d commit 6501825

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
@@ -213,6 +213,8 @@ protected function addBillingData(\SimpleXMLElement $data)
213213
/** @var CreditCard $card */
214214
if ($card = $this->getCard()) {
215215
// A card is present, so include billing and shipping details
216+
$req->customer->email = $card->getEmail();
217+
216218
$req->billTo->firstName = $card->getBillingFirstName();
217219
$req->billTo->lastName = $card->getBillingLastName();
218220
$req->billTo->company = $card->getBillingCompany();

0 commit comments

Comments
 (0)