Add query to get ArrahnPay payment detail and Billplz detail by bill id

This commit is contained in:
Afiq Hamzah
2024-08-07 12:52:49 +08:00
parent 9cb60609bc
commit 2e3c7c8738
4 changed files with 79 additions and 10 deletions
@@ -8,7 +8,7 @@ use Illuminate\Http\Request;
class BillplzTransactionReviewController extends Controller
{
public function __invoke(Request $request, BillplzService $billplzService)
public function index(Request $request, BillplzService $billplzService)
{
$date = $request->date ?? Carbon::now()->toDateString();
@@ -16,4 +16,13 @@ class BillplzTransactionReviewController extends Controller
return response()->json($billplzTransactionReview, 200);
}
public function show(Request $request, BillplzService $billplzService)
{
$date = $request->date ?? Carbon::now()->toDateString();
$billplzTransactionReview = $billplzService->getBillplzTransactionReviewByBillId($request->bill_id);
return response()->json($billplzTransactionReview, 200);
}
}