Skip to content

fix(bank-payments): match the payment reference the transfer instructions print - #527

Merged
Panelica merged 1 commit into
Panelica:mainfrom
ertugrulkeyvan:fix/bank-payments-payment-reference
Nov 30, 2026
Merged

Panelica merged 1 commit into
Panelica:mainfrom
ertugrulkeyvan:fix/bank-payments-payment-reference

Conversation

@ertugrulkeyvan

Copy link
Copy Markdown
Contributor

The bank transfer gateway tells the customer to write the payment reference in the transfer title: payment_ref(), the prefix and the invoice ID (INV34). The bank payments matcher only looked for the invoice number, so a customer who followed the instructions never got the number match and could not reach auto_ready.

InvoiceMatcher::scoreInvoice() now counts either one in the title as the number match. The matching is unchanged otherwise: a whole token, normalised the same way, so INV349 does not match invoice 34.

Tests: the printed reference matches and is auto-ready, a custom PaymentReferencePrefix matches, and a longer reference does not.

…ions print

The bank transfer gateway asks the customer to write payment_ref() (the
prefix and the invoice ID, e.g. INV34) in the transfer title. The matcher
only recognised the invoice number, so a customer who followed the
instructions was never matched by number and could not reach auto_ready.
Either one in the title now counts as the number match.
@Panelica
Panelica merged commit dce1414 into Panelica:main Nov 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants