fix: transaction amount in user withdraw operation

This commit is contained in:
Djery-Tom 2023-10-09 19:26:05 +01:00
parent 03ea53764d
commit 4540d05eec
1 changed files with 2 additions and 2 deletions

View File

@ -773,7 +773,7 @@ class iLinkTransactionController extends Controller
'exp_month' => date("m", strtotime($user->expiration_date)),
'exp_year' => date("Y", strtotime($user->expiration_date)),
'cvc' => $request->input('cvv'),
'amount' => $this->toMoneyAmount($transaction->montant_net, $init_country, $final_country),
'amount' => $transaction->montant_net,
'currency' => $countryCurrency->currency_code,
'payment_method' => 'CARD',
'customer_id' => $user->id,
@ -857,7 +857,7 @@ class iLinkTransactionController extends Controller
'exp_month' => date("m", strtotime($user->expiration_date)),
'exp_year' => date("Y", strtotime($user->expiration_date)),
'cvc' => $request->input('cvv'),
'amount' => $this->toMoneyAmount($transaction->montant_net, $init_country, $final_country),
'amount' => $transaction->montant_net,
'currency' => $countryCurrency->currency_code,
'payment_method' => 'CARD',
'customer_id' => $user->id,