1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 23:22:52 +01:00

Update payload with current config in GoCardlessOAuthController

This commit is contained in:
Benjamin Beganović 2024-06-12 19:33:26 +02:00
parent fa27afa6cd
commit 1f179aedaa

View File

@ -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'],