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

Refactor access token and active status assignment in GoCardlessOAuthController

This commit is contained in:
Benjamin Beganović 2024-06-14 18:18:21 +02:00
parent 5d7b3231cc
commit afe62f0aa8

View File

@ -95,8 +95,9 @@ class GoCardlessOAuthController extends Controller
'account_id' => $response['organisation_id'],
'token_type' => $response['token_type'],
'scope' => $response['scope'],
'livemode' => $response['active'],
'access_token' => $response['access_token'],
'active' => $response['active'],
'accessToken' => $response['access_token'],
'testMode' => $company_gateway->getConfigField('testMode'),
];
$company_gateway->setConfig($payload);