|
|
@@ -16,7 +16,7 @@ Route::group(['middleware' => ['web']], function () {
|
|
|
Route::prefix('paypal/smart-button')->group(function () {
|
|
|
Route::get('/create-order', [SmartButtonController::class, 'createOrder'])->name('paypal.smart-button.create-order');
|
|
|
|
|
|
- Route::post('/capture-order', [SmartButtonController::class, 'captureOrder'])->name('paypal.smart-button.capture-order')->withoutMiddleware(\Illuminate\Foundation\Http\Middleware\ValidateCsrfToken::class);
|
|
|
+ Route::post('/capture-order', [SmartButtonController::class, 'captureOrder'])->name('paypal.smart-button.capture-order');
|
|
|
});
|
|
|
});
|
|
|
|
|
|
@@ -32,7 +32,7 @@ if (class_exists(\Webkul\BagistoApi\Http\Middleware\VerifyStorefrontKey::class))
|
|
|
Route::prefix('paypal/smart-button')->group(function () {
|
|
|
Route::get('/create-order', [SmartButtonController::class, 'createOrder'])->name('bagistoapi.paypal.smart-button.create-order');
|
|
|
|
|
|
- Route::post('/capture-order', [SmartButtonController::class, 'captureOrder'])->name('bagistoapi.paypal.smart-button.capture-order')->withoutMiddleware(\Illuminate\Foundation\Http\Middleware\ValidateCsrfToken::class);
|
|
|
+ Route::post('/capture-order', [SmartButtonController::class, 'captureOrder'])->name('bagistoapi.paypal.smart-button.capture-order');
|
|
|
});
|
|
|
});
|
|
|
}
|