Repository navigation
Add M-Pesa transaction code protection for Kenya and Tanzania - #1681
Merged
maziyarpanahi merged 3 commits intoJul 22, 2026
Merged
Conversation
maziyarpanahi
force-pushed
the
feature/om-859-mpesa-transaction-code-recognizer
branch
from
July 22, 2026 20:06
b2194ca to
5c7b483
Compare
Owner
Author
|
Rebased onto the latest master and integrated the M-Pesa provider without displacing the existing East African ID or phone locale overlays. I also restored the end-to-end receipt test to the real Kenya/Tanzania locale routes now supported on master. The full local suite passes (6,670 passed, 47 skipped), all quality/build gates pass, every commit is owner-linked and verified, and the fresh hosted matrix is green on exact head 5c7b483. Ready to merge—thank you! |
maziyarpanahi
deleted the
feature/om-859-mpesa-transaction-code-recognizer
branch
July 22, 2026 20:18
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.
Description
Adds strict, context-gated detection for ten-character M-Pesa confirmation codes in Kenyan, Tanzanian, and Swahili billing text. Valid detected codes receive deterministic, validator-safe surrogates that preserve the leading date-encoding character and referential integrity without retaining the original transaction identifier.
Closes #1436.
Type of Change
Changes Made
sw,en_KE, anden_TZ.masterwithout replacing the existing East African ID and phone locale overlays.master.Testing
Validation completed on the rebased branch:
.venv/bin/python -m pytest tests/ -q— 6,670 passed, 47 skippedmake format,make lint,make format-check, andmake type-checkpre-commithooks, including Ruff, Bandit, hardcoded-secret detection, and merge-conflict detection/usr/local/bin/python3 -m build— wheel and source distribution built successfullygit diff --checkDocumentation
Code Quality
make format,make lint, andmake format-checkDependencies
Checklist
Related Issues
Closes #1436
Screenshots/Examples
The committed synthetic fixtures cover English and Swahili confirmation lines, ungated specimen/batch hard negatives, and repeated-code receipt copies.