fix: set correct currency code of network

This commit is contained in:
Djery-Tom 2023-08-11 18:01:40 +01:00
parent 0d1514b293
commit 0e867ae5cb
1 changed files with 2 additions and 2 deletions

View File

@ -335,7 +335,7 @@ class InsuranceInvoiceController extends Controller
'exp_month' => date("m", strtotime($cardExpiryDate)),
'exp_year' => date("Y", strtotime($cardExpiryDate)),
'cvc' => $request->input('cvv'),
'currency' => $country->currency_code,
'currency' => $networkConfig->network->country->currency_code,
'payment_method' => 'CARD',
'customer_id' => $user->id,
'customer_email' => $user->email,
@ -350,7 +350,7 @@ class InsuranceInvoiceController extends Controller
if ($payment_method == 'MOBILE_MONEY') {
$data = array_merge($data, [
'currency' => $user->network->country->currency_code,
'currency' => $networkConfig->network->country->currency_code,
'customer_id' => $user->id,
'customer_email' => $user->email,
'customer_name' => $user->lastname,