694e1af651
- update jomweb/billplz package - refactor controllers, views with means of to simplify data fetch and manipuation
20 lines
498 B
PHP
20 lines
498 B
PHP
<?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);
|
|
}
|
|
}
|