From 5d6d278fb857f24e82a33538c71b81f273577117 Mon Sep 17 00:00:00 2001 From: Djery-Tom Date: Thu, 29 Jun 2023 10:03:17 +0100 Subject: [PATCH] Change customer details to user details while on User wallet to wallet --- app/Http/Controllers/iLinkTransactionController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/iLinkTransactionController.php b/app/Http/Controllers/iLinkTransactionController.php index 73e6927..a1b7b43 100755 --- a/app/Http/Controllers/iLinkTransactionController.php +++ b/app/Http/Controllers/iLinkTransactionController.php @@ -311,8 +311,8 @@ class iLinkTransactionController extends Controller 'currency' => $countryCurrency->currency_code, 'customer_id' => $user->id, 'customer_email' => $user->email, - 'customer_name' => $request->input('prenom_destinataire'), - 'customer_surname' => $request->input('nom_destinataire'), + 'customer_name' => $user->firstname, + 'customer_surname' => $user->lastname, 'customer_phone_number' => $transaction->id_destinataire, 'customer_country' => $countryCurrency->code_country, 'reason' => "User - Envoi de wallet à wallet" @@ -1264,7 +1264,7 @@ class iLinkTransactionController extends Controller 'customer_surname' => $request->input('nom_destinataire'), 'customer_phone_number' => $transaction->id_destinataire, 'customer_country' => $countryCurrency->code_country, - 'reason' => "Agent - Envoi de casg à casg" + 'reason' => "Agent - Envoi de cash à cash" ]); }