Repository navigation
fix(bank-payments): match the payment reference the transfer instructions print - #527
Merged
Panelica merged 1 commit intoNov 30, 2026
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 reachauto_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, soINV349does not match invoice 34.Tests: the printed reference matches and is auto-ready, a custom
PaymentReferencePrefixmatches, and a longer reference does not.