fix: set correct currency code of network
This commit is contained in:
parent
0d1514b293
commit
0e867ae5cb
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue