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(); }