Fix missing network and country while Withdrawal cash
This commit is contained in:
parent
ab7b21b76f
commit
8423c6d29c
|
@ -1810,7 +1810,8 @@ class iLinkTransactionController extends Controller
|
||||||
if (in_array($transaction->type, [3, 17])) {
|
if (in_array($transaction->type, [3, 17])) {
|
||||||
$configPayeur = ConfigWallet::where('id_network', $transaction->network_destinataire)->firstOrFail();
|
$configPayeur = ConfigWallet::where('id_network', $transaction->network_destinataire)->firstOrFail();
|
||||||
if ($configPayeur->type != 'ilink')
|
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)
|
if ($transaction->status_retrait != 0)
|
||||||
|
|
Loading…
Reference in New Issue