chore: add payment routes for our UPS
This commit is contained in:
@@ -15,13 +15,19 @@ Route::prefix('payment')->name('payment.')->group(function () {
|
||||
Route::get('/success', [PaymentController::class, 'success'])->name('success');
|
||||
Route::get('/cancel', [PaymentController::class, 'cancel'])->name('cancel');
|
||||
|
||||
// Payment processing endpoints
|
||||
// UNIFIED: Payment processing endpoints (new unified payment system)
|
||||
Route::post('/checkout', [PaymentController::class, 'createCheckout'])->name('checkout');
|
||||
Route::post('/subscribe', [PaymentController::class, 'createSubscription'])->name('subscribe');
|
||||
Route::get('/methods', [PaymentController::class, 'getPaymentMethods'])->name('methods');
|
||||
Route::get('/history', [PaymentController::class, 'getHistory'])->name('history');
|
||||
});
|
||||
|
||||
// UNIFIED: Enhanced checkout routes with provider selection
|
||||
Route::middleware(['auth', 'verified'])->prefix('checkout')->name('checkout.')->group(function () {
|
||||
Route::get('/enhanced/{plan}/{provider}', [PaymentController::class, 'enhancedCheckout'])->name('enhanced');
|
||||
Route::get('/trial/{plan}/{provider}', [PaymentController::class, 'trialCheckout'])->name('trial');
|
||||
});
|
||||
|
||||
Route::prefix('webhook')->name('webhook.')->group(function () {
|
||||
// Unified webhook handler
|
||||
Route::post('/{provider}', [WebhookController::class, 'handle'])->name('unified');
|
||||
|
||||
Reference in New Issue
Block a user