From 8423c6d29c31605565f2451e866a080be1986ff4 Mon Sep 17 00:00:00 2001 From: Djery-Tom Date: Tue, 22 Feb 2022 10:15:59 +0100 Subject: [PATCH] Fix missing network and country while Withdrawal cash --- app/Http/Controllers/iLinkTransactionController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/iLinkTransactionController.php b/app/Http/Controllers/iLinkTransactionController.php index 71a044e..81dcf99 100755 --- a/app/Http/Controllers/iLinkTransactionController.php +++ b/app/Http/Controllers/iLinkTransactionController.php @@ -1810,7 +1810,8 @@ class iLinkTransactionController extends Controller if (in_array($transaction->type, [3, 17])) { $configPayeur = ConfigWallet::where('id_network', $transaction->network_destinataire)->firstOrFail(); if ($configPayeur->type != 'ilink') - return $this->errorResponse(trans('errors.withdrawal_network_unauthorized')); + return $this->errorResponse(trans('errors.withdrawal_network_unauthorized', ['network' => $this->getNetworkName($transaction->network_destinataire), + 'country' => $this->getCountryName($transaction->final_country)])); } if ($transaction->status_retrait != 0)