From c905e4a5b6117cbd43fbce39c80c9992c714a3ec Mon Sep 17 00:00:00 2001 From: Joshua Dwire Date: Thu, 11 Nov 2021 19:46:43 -0500 Subject: [PATCH] Fix eWay first/last name reversed in saved cards --- app/PaymentDrivers/Eway/CreditCard.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/PaymentDrivers/Eway/CreditCard.php b/app/PaymentDrivers/Eway/CreditCard.php index f6c5fc273824..36e6d4dfa37c 100644 --- a/app/PaymentDrivers/Eway/CreditCard.php +++ b/app/PaymentDrivers/Eway/CreditCard.php @@ -63,8 +63,8 @@ class CreditCard $transaction = [ 'Reference' => $this->eway_driver->client->number, 'Title' => '', - 'FirstName' => $this->eway_driver->client->contacts()->first()->present()->last_name(), - 'LastName' => $this->eway_driver->client->contacts()->first()->present()->first_name(), + 'FirstName' => $this->eway_driver->client->contacts()->first()->present()->first_name(), + 'LastName' => $this->eway_driver->client->contacts()->first()->present()->last_name(), 'CompanyName' => $this->eway_driver->client->name, 'Street1' => $this->eway_driver->client->address1, 'Street2' => $this->eway_driver->client->address2,