diff --git a/app/Http/Controllers/InsuranceInvoiceController.php b/app/Http/Controllers/InsuranceInvoiceController.php index 1991620..384e2b4 100644 --- a/app/Http/Controllers/InsuranceInvoiceController.php +++ b/app/Http/Controllers/InsuranceInvoiceController.php @@ -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,