sifangpay/routes/pay.php

34 lines
1.0 KiB
PHP

<?php
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
//$user=\App\Models\JwtUser::find(10);
//$token=\Tymon\JWTAuth\Facades\JWTAuth::fromUser($user);
//echo $token;
//domain(config('host.web_host'))->
Route::name('web.pay.')->group(function ($route) {
Route::group(['prefix' => 'pay'], function ($route) {
$route->any('/return/{type}', 'PayController@returnNotify')->name('return');
$route->any('/notify/{type}', 'PayController@notify')->name('notify');;
$route->any('/returnback', 'ApiPayController@scanOrderBack')->name('scan.return');
$route->any('/banknotify', 'PayController@bankCardNotify')->name('bankCardNotify');
});
});