web-mooc/routes/payment.php
Baghiz Zuhdi Adzin 1f8efdccc4 pembayaran
2026-01-21 15:34:54 +07:00

14 lines
744 B
PHP

<?php
use App\Http\Controllers\OfflinePaymentController;
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');
});
Route::any('payment-notification/{identifier?}', [PaymentController::class, 'payment_notification'])->name('payment.notification');