Codebase update

- update jomweb/billplz package
- refactor controllers, views with means of to simplify data fetch and manipuation
This commit is contained in:
Afiq Hamzah
2024-07-15 17:08:52 +08:00
parent d01521a036
commit 694e1af651
22 changed files with 3318 additions and 2140 deletions
@@ -0,0 +1,19 @@
<?php
namespace App\Http\Controllers;
use App\Services\BillplzService;
use Carbon\Carbon;
use Illuminate\Http\Request;
class BillplzTransactionReviewController extends Controller
{
public function __invoke(Request $request, BillplzService $billplzService)
{
$date = $request->date ?? Carbon::now()->toDateString();
$billplzTransactionReview = $billplzService->getBillplzTransactionReview($date);
return response()->json($billplzTransactionReview, 200);
}
}