From 4b449b4e843dba5364cb13b948dedb5f8e5a168e Mon Sep 17 00:00:00 2001 From: Tigran <62335544+tikohov20@users.noreply.github.com> Date: Tue, 23 May 2023 03:04:32 +0400 Subject: [PATCH] Added external_reference_id for buyers. (#75) --- Model/Request/Transactions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Model/Request/Transactions.php b/Model/Request/Transactions.php index 5a048d0..f7afc27 100644 --- a/Model/Request/Transactions.php +++ b/Model/Request/Transactions.php @@ -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(),