mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for nordigen
This commit is contained in:
parent
0a8cf53be0
commit
1f3770d71e
@ -110,8 +110,8 @@ class AccountTransformer implements AccountTransformerInterface
|
|||||||
'provider_account_id' => $nordigen_account->metadata["id"],
|
'provider_account_id' => $nordigen_account->metadata["id"],
|
||||||
'provider_id' => $nordigen_account->institution["id"],
|
'provider_id' => $nordigen_account->institution["id"],
|
||||||
'provider_name' => $nordigen_account->institution["name"],
|
'provider_name' => $nordigen_account->institution["name"],
|
||||||
'nickname' => $nordigen_account->data["ownerName"] ? $nordigen_account->data["ownerName"] : '',
|
'nickname' => isset($nordigen_account->data["ownerName"]) ? $nordigen_account->data["ownerName"] : '',
|
||||||
'current_balance' => (int) $used_balance ? $used_balance["balanceAmount"]["amount"] : 0,
|
'current_balance' => (float) $used_balance ? $used_balance["balanceAmount"]["amount"] : 0,
|
||||||
'account_currency' => $used_balance ? $used_balance["balanceAmount"]["currency"] : '',
|
'account_currency' => $used_balance ? $used_balance["balanceAmount"]["currency"] : '',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user