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:
parent
5d7b3231cc
commit
afe62f0aa8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user