1234567891011121314151617181920212223242526 |
- <?php
- //Paytm
- use App\Http\Controllers\Payment\PaytmController;
- use App\Http\Controllers\Payment\ToyyibpayController;
- Route::controller(PaytmController::class)->group(function () {
- Route::get('/paytm/index', 'pay');
- Route::get('/paytm/callback', 'callback')->name('paytm.callback');
- });
- //Admin
- Route::group(['prefix' =>'admin', 'middleware' => ['auth', 'admin']], function(){
- Route::controller(PaytmController::class)->group(function () {
- Route::get('/paytm_configuration', 'credentials_index')->name('paytm.index');
- Route::post('/paytm_configuration_update', 'update_credentials')->name('paytm.update_credentials');
- });
- });
- //Toyyibpay
- Route::controller(ToyyibpayController::class)->group(function () {
- Route::get('toyyibpay-status', 'paymentstatus')->name( 'toyyibpay-status');
- Route::post('/toyyibpay-callback', 'callback')->name( 'toyyibpay-callback');
- });
|