From 0d1514b2938f293b89e45a9a125c2af52ae22932 Mon Sep 17 00:00:00 2001 From: Djery-Tom Date: Fri, 4 Aug 2023 12:42:36 +0100 Subject: [PATCH] fix: in wallet type --- 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 6608a92..1991620 100644 --- a/app/Http/Controllers/InsuranceInvoiceController.php +++ b/app/Http/Controllers/InsuranceInvoiceController.php @@ -220,7 +220,7 @@ class InsuranceInvoiceController extends Controller * description="Token la transaction de paiement" * ) * ), - * example = {"password":"adbc1215448", "amount" : 50000 , "payment_method" : "wallet" } + * example = {"password":"adbc1215448", "amount" : 50000 , "payment_method" : "WALLET" } * ) * ), * @OA\Response( @@ -392,7 +392,7 @@ class InsuranceInvoiceController extends Controller $user->save(); if (empty($transaction_id)) { - if ($payment_method == 'wallet') { + if ($payment_method == 'WALLET') { $user->wallet->balance -= $amountToPaid; $user->wallet->save(); }