1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00

Update AccountTransformer.php

Also update the account_name

Signed-off-by: Kevin <kevin@kevjoe.be>
This commit is contained in:
Kevin 2024-02-12 21:36:09 +01:00 committed by GitHub
parent 821f2b90b9
commit 6db185d893
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -106,7 +106,7 @@ class AccountTransformer implements AccountTransformerInterface
'account_type' => "bank", 'account_type' => "bank",
'account_name' => isset($nordigen_account->data["iban"]) ? $nordigen_account->data["iban"] : '', 'account_name' => isset($nordigen_account->data["iban"]) ? $nordigen_account->data["iban"] : '',
'account_status' => $nordigen_account->metadata["status"], 'account_status' => $nordigen_account->metadata["status"],
'account_number' => '**** ' . substr($nordigen_account->data["iban"], -7), 'account_number' => isset($nordigen_account->data["iban"]) ? '**** ' . substr($nordigen_account->data["iban"], -7) : '',
'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"],