From 1f179aedaa582303d4bbe3b2afb4fe3a2f6dd325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Wed, 12 Jun 2024 19:33:26 +0200 Subject: [PATCH] Update payload with current config in GoCardlessOAuthController --- app/Http/Controllers/Gateways/GoCardlessOAuthController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Gateways/GoCardlessOAuthController.php b/app/Http/Controllers/Gateways/GoCardlessOAuthController.php index 0c0b0d68c988..7b2c9fd6369f 100644 --- a/app/Http/Controllers/Gateways/GoCardlessOAuthController.php +++ b/app/Http/Controllers/Gateways/GoCardlessOAuthController.php @@ -86,12 +86,12 @@ class GoCardlessOAuthController extends Controller $company_gateway->gateway_key = 'b9886f9257f0c6ee7c302f1c74475f6c'; $company_gateway->fees_and_limits = $fees_and_limits; $company_gateway->setConfig([]); - $company_gateway->token_billing = 'always'; // @todo: Double check } $response = $response->json(); $payload = [ + '__current' => $company_gateway->getConfig(), 'account_id' => $response['organisation_id'], 'token_type' => $response['token_type'], 'scope' => $response['scope'],