web-mooc/routes/payment.php
2025-11-24 14:59:29 +07:00

17 lines
803 B
PHP

<?php
use App\Http\Controllers\PaymentController;
use Illuminate\Support\Facades\Route;
Route::controller(PaymentController::class)->middleware('auth')->group(function () {
Route::get('payment', 'index')->name('payment');
Route::get('payment/show_payment_gateway_by_ajax/{identifier}', 'show_payment_gateway_by_ajax')->name('payment.show_payment_gateway_by_ajax');
Route::any('payment/success/{identifier?}', 'payment_success')->name('payment.success');
Route::get('payment/create/{identifier}', 'payment_create')->name('payment.create');
// razor pay
Route::post('payment/{identifier}/order', 'payment_razorpay')->name('razorpay.order');
});
Route::any('payment-notification/{identifier?}', [PaymentController::class, 'payment_notification'])->name('payment.notification');