Update getBanksInNetworkForLink

This commit is contained in:
root 2025-11-12 12:27:52 +01:00
parent 42ee42d79c
commit 1340cc7011
2 changed files with 2 additions and 2 deletions

View File

@ -465,7 +465,7 @@ INNER JOIN countries c ON oc.id_country = c.id INNER JOIN type_operators top ON
{
$id_country = Network::findOrFail($id_wallet_network)->country->id;
$banks = DB::select("SELECT oc.id as id_bank, o.nom as bank_name , oc.adresse as bank_address, c.name as country FROM networks_operators nop INNER JOIN operators_countries oc ON oc.id = nop.id_operator_country INNER JOIN operators o ON o.id = oc.id_operator
INNER JOIN countries c ON oc.id_country = c.id INNER JOIN type_operators top ON o.type = top.code WHERE nop.id_network = :id_network AND o.type = 'bank' AND oc.id_country = :id_country ;", ['id_network' => $id_wallet_network, 'id_country' => $id_country]);
INNER JOIN countries c ON oc.id_country = c.id INNER JOIN type_operators top ON o.type = top.code WHERE nop.id_network = :id_network AND o.type LIKE '%bank%' AND oc.id_country = :id_country ;", ['id_network' => $id_wallet_network, 'id_country' => $id_country]);
return $this->successResponse($banks);
}

View File

@ -1977,7 +1977,7 @@ class iLinkTransactionController extends Controller
$walletHyperviseurPayeur->save();
}
} else {
//Emettre requete SSL vers wallet extene correspondant pour recharger le compte du destinataire
//Emettre requete SSL vers wallet externe correspondant pour recharger le compte du destinataire
$countryCurrency = CountriesCurrency::findOrFail($transaction->final_country);
// PayOut through payment service
$this->handlePayOut($transaction, [