Merge pull request #5332 from devansh-webkul/paypal-routes-improvised

Paypal routes improved and used `withoutMiddleware`
This commit is contained in:
Devansh 2021-11-16 17:39:16 +05:30 committed by GitHub
commit 9b7727397d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,5 @@ class VerifyCsrfToken extends Middleware
*
* @var array
*/
protected $except = [
'paypal/standard/ipn'
];
protected $except = [];
}

View File

@ -1,6 +1,6 @@
<?php
// Controllers
use Illuminate\Support\Facades\Route;
use Webkul\Paypal\Http\Controllers\SmartButtonController;
use Webkul\Paypal\Http\Controllers\StandardController;
@ -20,4 +20,6 @@ Route::group(['middleware' => ['web']], function () {
});
});
Route::post('paypal/standard/ipn', [StandardController::class, 'ipn'])->name('paypal.standard.ipn');
Route::post('paypal/standard/ipn', [StandardController::class, 'ipn'])
->withoutMiddleware(\App\Http\Middleware\VerifyCsrfToken::class)
->name('paypal.standard.ipn');