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"; } }