paytm.php 908 B

1234567891011121314151617181920212223242526
  1. <?php
  2. //Paytm
  3. use App\Http\Controllers\Payment\PaytmController;
  4. use App\Http\Controllers\Payment\ToyyibpayController;
  5. Route::controller(PaytmController::class)->group(function () {
  6. Route::get('/paytm/index', 'pay');
  7. Route::get('/paytm/callback', 'callback')->name('paytm.callback');
  8. });
  9. //Admin
  10. Route::group(['prefix' =>'admin', 'middleware' => ['auth', 'admin']], function(){
  11. Route::controller(PaytmController::class)->group(function () {
  12. Route::get('/paytm_configuration', 'credentials_index')->name('paytm.index');
  13. Route::post('/paytm_configuration_update', 'update_credentials')->name('paytm.update_credentials');
  14. });
  15. });
  16. //Toyyibpay
  17. Route::controller(ToyyibpayController::class)->group(function () {
  18. Route::get('toyyibpay-status', 'paymentstatus')->name( 'toyyibpay-status');
  19. Route::post('/toyyibpay-callback', 'callback')->name( 'toyyibpay-callback');
  20. });