Merge pull request #9537 from yannickboy15/nordigen-type-fix

Fix: Update Nordigen to properly handle small money transfer amounts
This commit is contained in:
David Bomba 2024-05-23 09:18:18 +10:00 committed by GitHub
commit f52efa88bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -148,7 +148,7 @@ class TransactionTransformer implements BankRevenueInterface
'description' => $description,
'participant' => $participant,
'participant_name' => $participant_name,
'base_type' => (int) $transaction["transactionAmount"]["amount"] <= 0 ? 'DEBIT' : 'CREDIT',
'base_type' => $amount < 0 ? 'DEBIT' : 'CREDIT',
];
}