WuYongJie 2b6c4030e5
Some checks failed
Tests / PHP 8.1 (push) Has been cancelled
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
chore: 补充财务与支付模块源码
2026-07-20 18:40:05 +08:00

18 lines
746 B
PHP

<?php
use App\Http\Middleware\VerifyCsrfToken;
use Illuminate\Support\Facades\Route;
/**
* 'guest' middleware and 'portal/paypal-standard' prefix applied to all routes (including names)
*
* @see \App\Providers\Route::register
*/
Route::portal('paypal-standard', function () {
Route::get('invoices/{invoice}', 'Payment@show')->name('invoices.show');
Route::post('invoices/{invoice}/confirm', 'Payment@confirm')->withoutMiddleware(VerifyCsrfToken::class)->name('invoices.confirm');
Route::post('invoices/{invoice}/return', 'Payment@return')->withoutMiddleware(VerifyCsrfToken::class)->name('invoices.return');
Route::get('invoices/{invoice}/cancel', 'Payment@cancel')->name('invoices.cancel');
}, ['middleware' => 'guest']);