From 680076ff4bfb6e1c063472805c893d775fe0126c Mon Sep 17 00:00:00 2001 From: Metin Karakurum Date: Thu, 10 Jun 2021 15:44:11 +0300 Subject: [PATCH] Billing and shipping name fixed --- src/Messages/AbstractRequest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Messages/AbstractRequest.php b/src/Messages/AbstractRequest.php index cfb896c..7f77ba1 100644 --- a/src/Messages/AbstractRequest.php +++ b/src/Messages/AbstractRequest.php @@ -374,7 +374,7 @@ private function getShipAndBill(array &$data): array { if ($this->getCard() && !empty($this->getCard()->getFirstName())) { $data['ship'] = [ - 'Name' => $this->getCard()->getFirstName() . ' ' . $this->getCard()->getLastName(), + 'Name' => $this->getCard()->getShippingFirstName() . ' ' . $this->getCard()->getShippingLastName(), 'Street1' => $this->getCard()->getShippingAddress1(), 'Street2' => $this->getCard()->getShippingAddress2(), 'Street3' => '', @@ -386,7 +386,7 @@ private function getShipAndBill(array &$data): array 'TelVoice' => $this->getCard()->getShippingPhone() ]; $data['bill'] = [ - 'Name' => $this->getCard()->getFirstName() . ' ' . $this->getCard()->getLastName(), + 'Name' => $this->getCard()->getBillingFirstName() . ' ' . $this->getCard()->getBillingLastName(), 'Street1' => $this->getCard()->getBillingAddress1(), 'Street2' => $this->getCard()->getBillingAddress2(), 'Street3' => '',