Skip to content

Commit

Permalink
Added external_reference_id for buyers. (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
tikohov20 authored May 22, 2023
1 parent 5014c43 commit 4b449b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Model/Request/Transactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ private function getBuyerParams(Quote $quote): array
if (($billing = $quote->getBillingAddress()) !== null) {
$params = [
'is_registered' => (bool) $quote->getCustomer()->getId(),
'external_reference_id' => $quote->getCustomerId() ? $quote->getCustomerId() : null,
'email' => $billing->getEmail() ?? $quote->getShippingAddress()->getEmail() ?? $quote->getCustomerEmail() ?? $this->fallbackEmail,
'company_name' => $billing->getCompany(),
'first_name' => $billing->getFirstname(),
Expand Down

0 comments on commit 4b449b4

Please sign in to comment.