This commit is contained in:
2025-07-18 16:10:13 +03:00
parent 5487242bbe
commit ab0834149d
13 changed files with 58 additions and 24 deletions

View File

@@ -84,7 +84,7 @@ export class MontonioWebhookHandlerService
}, `Received Montonio webhook event`);
if (event.paymentStatus === 'PAID') {
const accountId = event.merchantReferenceDisplay.split(':')[0];
const [accountId] = event.merchantReferenceDisplay.split(':');
if (!accountId) {
throw new Error('Invalid merchant reference');
}