feat: Implement payment proof upload for orders, add payment method selection API, and seed bank transfer payment options.
This commit is contained in:
@@ -26,6 +26,21 @@ class PaymentController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
public function forSelect(): JsonResponse
|
||||
{
|
||||
$payments = $this->paymentRepository->filter(['status' => 1]);
|
||||
|
||||
return response()->json([
|
||||
'error' => false,
|
||||
'data' => $payments->map(fn($p) => [
|
||||
'id' => $p->id,
|
||||
'name' => $p->name,
|
||||
'type' => (int) $p->type,
|
||||
'status' => (int) $p->status,
|
||||
])->values(),
|
||||
]);
|
||||
}
|
||||
|
||||
public function store(PaymentRequest $request): JsonResponse
|
||||
{
|
||||
$request->validated();
|
||||
|
||||
Reference in New Issue
Block a user