+ Update WalletTransaction as preprod branch
This commit is contained in:
parent
ee30c51075
commit
ac02bb8718
|
@ -81,10 +81,11 @@ class TransactionController extends Controller
|
|||
// if($walletAgent->balance_princ >= ($transaction->montant + $frais + $config->frais_min_banque_depot)){
|
||||
|
||||
$code = 200;
|
||||
if($request->facade == 'front'){
|
||||
$response = $client->post('fund-transfer-api/v1/transaction/push', ['json' => $body]);
|
||||
$code = $response->getStatusCode();
|
||||
}
|
||||
// API non disponible pour l'instant
|
||||
// if($request->facade == 'front'){
|
||||
// $response = $client->post('fund-transfer-api/v1/transaction/push', ['json' => $body]);
|
||||
// $code = $response->getStatusCode();
|
||||
// }
|
||||
|
||||
if ($code == 200) {
|
||||
|
||||
|
@ -123,7 +124,7 @@ class TransactionController extends Controller
|
|||
} elseif ($transaction->type == 'debit') {
|
||||
// 12-05-20: Modif de Mr Manga : Le montant de la transaction c'est le montant de retrait sans les frais
|
||||
//Bloquer le retrait
|
||||
// return $this->errorResponse(trans('errors.service_unavailable'), Response::HTTP_BAD_REQUEST);
|
||||
return $this->errorResponse(trans('errors.service_unavailable'), Response::HTTP_BAD_REQUEST);
|
||||
$frais = $transaction->montant * $config->taux_com_client_retrait / 100;
|
||||
|
||||
//Requete vers la banque
|
||||
|
|
Loading…
Reference in New Issue