From d3cf07cb6c0393540987ff6bfee1a4e1c5ea8f97 Mon Sep 17 00:00:00 2001 From: Djery-Tom Date: Wed, 4 Oct 2023 13:45:32 +0100 Subject: [PATCH] fix: missing recipient while doing ilink world transaction v2 --- app/Http/Controllers/iLinkTransactionController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/iLinkTransactionController.php b/app/Http/Controllers/iLinkTransactionController.php index 2dabcd8..7be2b58 100755 --- a/app/Http/Controllers/iLinkTransactionController.php +++ b/app/Http/Controllers/iLinkTransactionController.php @@ -1919,8 +1919,8 @@ class iLinkTransactionController extends Controller 'payment_method' => 'CARD', 'customer_id' => $user->id, 'customer_email' => $user->email, - 'customer_name' => $withLinkedCard ? $identification->firstname : $request->input('customer_name', $destinataire?->firstname ?? ''), - 'customer_surname' => $withLinkedCard ? $identification->lastname : $request->input('customer_surname', $destinataire?->lastname ?? ''), + 'customer_name' => $withLinkedCard ? $identification->firstname : $request->input('customer_name', $destinataire?->firstname ?? $identification?->firstname), + 'customer_surname' => $withLinkedCard ? $identification->lastname : $request->input('customer_surname', $destinataire?->lastname ?? $identification?->lastname ), 'customer_address' => $withLinkedCard ? $identification->town : $request->input('customer_address'), 'customer_city' => $withLinkedCard ? $identification->town : $request->input('customer_city'), 'customer_country' => $country->code_country,