feat: add payment intent handling in PurchaseController with validation and QR generation

This commit is contained in:
2026-07-06 11:47:04 -03:00
parent 3731cd67fe
commit 6bda3bf013
6 changed files with 89 additions and 2 deletions

View File

@@ -5,4 +5,5 @@ use Illuminate\Support\Facades\Route;
Route::prefix('tenants/{tenant:codigo}')->middleware('auth:sanctum')->group(function (): void {
Route::apiResource('compras', PurchaseController::class)->only(['index', 'store', 'show']);
Route::post('compras/{compra}/payment-intent', [PurchaseController::class, 'paymentIntent']);
});