From 876d930ae2e52741e6532b9928e1580a7a9d394a Mon Sep 17 00:00:00 2001 From: omair saleh Date: Thu, 18 Aug 2022 17:01:24 +0800 Subject: [PATCH] wallet audit --- routes/web.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/routes/web.php b/routes/web.php index ee22ca08..5c3c2fee 100644 --- a/routes/web.php +++ b/routes/web.php @@ -323,11 +323,13 @@ Route::get('/wallet/audit', function (Request $request) { if($response->successful()){ $data = $response->json(); -dd($data); - $topups += (float) $transaction->amount; -// return (object) $data; + if($data['paid']){ + $topups += (float) $transaction->amount; + } else { + echo $transaction->id." => Fraud"; + } }else{ - echo $transaction->id." => Fraud"; + echo "billplz error"; } }