fix: add second aggregator calculation fees while doing "User - Retrait de carte vers autre wallet"
This commit is contained in:
parent
f7a027874f
commit
be684d7f4e
|
@ -1780,7 +1780,12 @@ class iLinkTransactionController extends Controller
|
||||||
'country_id' => $init_country,
|
'country_id' => $init_country,
|
||||||
'payment_type' => PaymentType::CASH_OUT,
|
'payment_type' => PaymentType::CASH_OUT,
|
||||||
'payment_method' => PaymentMethod::CARD
|
'payment_method' => PaymentMethod::CARD
|
||||||
]);
|
]) + $this->getBasicTransactionFees([
|
||||||
|
'amount' => $request->montant,
|
||||||
|
'country_id' => $init_country,
|
||||||
|
'payment_type' => PaymentType::CASH_IN,
|
||||||
|
'payment_method' => PaymentMethod::WALLET
|
||||||
|
]);
|
||||||
$frais += $fees;
|
$frais += $fees;
|
||||||
|
|
||||||
$taxe = $this->calculateTax($init_country != $request->final_country ? $taxesInternationales : $taxesNationales, $frais);
|
$taxe = $this->calculateTax($init_country != $request->final_country ? $taxesInternationales : $taxesNationales, $frais);
|
||||||
|
@ -2153,7 +2158,6 @@ class iLinkTransactionController extends Controller
|
||||||
'payment_type' => PaymentType::CASH_IN,
|
'payment_type' => PaymentType::CASH_IN,
|
||||||
'payment_method' => PaymentMethod::WALLET
|
'payment_method' => PaymentMethod::WALLET
|
||||||
]);
|
]);
|
||||||
$data['fees'] = $fees;
|
|
||||||
$frais += $fees;
|
$frais += $fees;
|
||||||
} else {
|
} else {
|
||||||
$destinataire = User::where('user_code', $request->id_destinataire)->orWhere('phone', $request->id_destinataire)->first();
|
$destinataire = User::where('user_code', $request->id_destinataire)->orWhere('phone', $request->id_destinataire)->first();
|
||||||
|
@ -2314,7 +2318,12 @@ class iLinkTransactionController extends Controller
|
||||||
'country_id' => $init_country,
|
'country_id' => $init_country,
|
||||||
'payment_type' => PaymentType::CASH_OUT,
|
'payment_type' => PaymentType::CASH_OUT,
|
||||||
'payment_method' => PaymentMethod::CARD
|
'payment_method' => PaymentMethod::CARD
|
||||||
]);
|
]) + $this->getBasicTransactionFees([
|
||||||
|
'amount' => $request->montant,
|
||||||
|
'country_id' => $init_country,
|
||||||
|
'payment_type' => PaymentType::CASH_IN,
|
||||||
|
'payment_method' => PaymentMethod::WALLET
|
||||||
|
]);
|
||||||
$frais += $fees;
|
$frais += $fees;
|
||||||
$taxe = $this->calculateTax($init_country != $request->final_country ? $taxesInternationales : $taxesNationales, $frais);
|
$taxe = $this->calculateTax($init_country != $request->final_country ? $taxesInternationales : $taxesNationales, $frais);
|
||||||
$data['frais'] = round($frais + $taxe, 2);
|
$data['frais'] = round($frais + $taxe, 2);
|
||||||
|
|
Loading…
Reference in New Issue