Add query to get ArrahnPay payment detail and Billplz detail by bill id
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user