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
18 lines
746 B
PHP
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']);
|