diff --git a/app/Http/Controllers/Gateways/GoCardlessOAuthController.php b/app/Http/Controllers/Gateways/GoCardlessOAuthController.php index 1dd1c094920a..8a0a931a7993 100644 --- a/app/Http/Controllers/Gateways/GoCardlessOAuthController.php +++ b/app/Http/Controllers/Gateways/GoCardlessOAuthController.php @@ -23,7 +23,7 @@ class GoCardlessOAuthController extends Controller { $params = [ 'client_id' => config('services.gocardless.client_id'), - 'redirect_uri' => route('gocardless.oauth.confirm', ['token' => $request->getCompany()->company_key]), + 'redirect_uri' => route('gocardless.oauth.confirm'), 'scope' => 'read_write', 'response_type' => 'code', 'prefill[email]' => 'ben@invoiceninja.com', diff --git a/routes/web.php b/routes/web.php index c5bc63c80c5f..8e5f31b39d7a 100644 --- a/routes/web.php +++ b/routes/web.php @@ -52,4 +52,4 @@ Route::get('gocardless/ibp_redirect/{company_key}/{company_gateway_id}/{hash}', Route::get('.well-known/apple-developer-merchantid-domain-association', [ApplePayDomainController::class, 'showAppleMerchantId']); Route::get('gocardless/oauth/connect/{company_key}', [GoCardlessOAuthController::class, 'connect']); -Route::get('gocardless/oauth/connect/{company_key}/confirm', [GoCardlessOAuthController::class, 'confirm'])->name('gocardless.oauth.confirm'); +Route::get('gocardless/oauth/connect/confirm', [GoCardlessOAuthController::class, 'confirm'])->name('gocardless.oauth.confirm');