From 0e867ae5cbe6322e725b494d1f5b9056ffdac07c Mon Sep 17 00:00:00 2001 From: Djery-Tom Date: Fri, 11 Aug 2023 18:01:40 +0100 Subject: [PATCH] fix: set correct currency code of network --- app/Http/Controllers/InsuranceInvoiceController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,