Repository navigation
Releases
v1.6.0
SDKs: every SDK reads checkedUrl (the bank page cheki asked) on a 422 and on failed batch items; see "BOA receipts filed under the payer's account" below. The rest of this entry shipped to cheki.et as it merged.
Batch check results built for end-of-day reconciliation
- Several screenshots at once now read like a ledger: the confirmed total on top (bank-confirmed amounts only), then a numbered line per screenshot with its verdict, reference and amount in one right-aligned column.
- A receipt that appears twice is red ("Same receipt as #1") and counted once.
- Rows open in place: the reference (with copy), payer, receiver, paid date, bank, a downscaled preview made only when opened, and the bank's page. Unavailable or rate-limited rows can be retried.
- Images wait their turn ("Waiting") and are scanned one at a time. Reading the text of a screenshot without a QR (OCR) is slow, so it is offered per row or for all of them, not run by default.
- "Show N that need a look" filters to the rows to chase.
- Copy summary (in the screen's own words) and Download CSV. The CSV carries amounts and names only for bank-confirmed first copies, and defuses cells that would run as spreadsheet formulas.
- Screen readers hear the batch once, when it finishes.
BOA receipts filed under the payer's account
- BOA files some receipts under the source account's last 5 digits instead of the receiver's (seen on an Apollo app transfer). A BOA QR carries both accounts, so when BOA answers "Invalid reference number" under the receiver and the QR's source account is full (not masked), cheki asks once more under it. An unreadable BOA answer is unconfirmed, never a "no", and triggers no retry. BOA still decides, and its amount must still match the QR.
- A typed BOA lookup that finds nothing now says to try the source account's last 5 digits.
- A 422 from
/api/verifyand a failed batch item now carrycheckedUrl(https only), the bank page cheki asked, so anyone can see the bank's own answer. The verify card links it as "Bank's answer". Every SDK reads it:checkedUrl(TypeScriptChekiAPIErrorand batch items, PHP and Dart),checked_url(Python),CheckedURL(GoAPIErrorand batch items).
CBE Birr is live (beta)
- Verified on 2026-10-16 against two real receipts (a wallet transfer and a transfer to a bank account). A matching receipt number and payer phone return the receipt as a one-page PDF, also from outside Ethiopia, so CBE Birr is not geo-blocked. Live banks: 9 → 10;
betais true for M-Pesa, ZamZam and CBE Birr. - Fields read: payer name and wallet number, receiver name and account, amount, service charge, VAT, total paid, date (Addis Ababa time, no offset), status, receipt number, order ID, amount in words, payment reason and payment channel. The PDF prints both phone numbers in full; cheki masks them (
09****1234). - The empty "Auto Receipt" page means the receipt number and phone don't match (the earlier contributed receipt was such a pair). It stays "could not confirm" (502 with
fallbackUrl, the receipt link), never not found, and now says to check both. - Fix: the real PDF draws its values in a different order from their labels, so flowed text read the payment reason and channel wrongly. The PDF is now read as positioned rows. Real rows also put spaces between the receipt number, date and amount, wrapped long names onto a second row, and print "VAT Registration No" above the VAT amount; all three are handled.
- Phone numbers are sent as
251XXXXXXXXX(the form CBE Birr's own links use);09…,07…and+251…are accepted. Receipt numbers are 10 or 11 letters and digits. - Fix: an 11-character receipt number lost its first character in the PDF layout, so the gate would have rejected a real receipt.
- Python direct mode: reads the CBE Birr receipt PDF (phones masked) and runs it through the gate; an empty page is never verified. It no longer crashes with a duplicate
timeoutargument and URL-encodes the receipt number and phone. - CBE Birr receipt QR: the QR at the bottom right of the receipt is the receipt's own link (
cbepay1.cbe.com.et/aureceipt?TID=…&PH=…), so a scan or upload fills both the receipt number and the payer phone. It works in the web scanner and photo upload, in/api/ocr(which now also returnsphoneNumber), asqrDatain/api/verifywith bankcbebirror no bank, and incheki verify-qr <qr-data>. The pair in the QR wins over a typed phone, and a CBE Birr QR sent with another bank is reported, not re-routed. Like every QR it is only an input. - Verify panel: a CBE Birr link without a phone opens the phone field, and
07…(Safaricom) numbers are accepted there as on the server. - CLI:
cheki verify cbebirr <receipt number> -p <payer phone>is in the help,cheki verify-qrtakes the bank as optional, andcheki infomarks beta banks and the phone requirement. - Tests use a synthetic PDF with the real layout (
tests/fixtures/cbebirr/synthetic-receipt.ts); no real receipt data is committed.
v1.5.0: SDKs 1.5.0
Install: npm install cheki-verify@1.5.0 · pip install cheki==1.5.0 · composer require cheki/cheki:^1.5 · dart pub add cheki:^1.5.0 · go get github.com/1RB/cheki/sdks/go@v1.5.0
The first registry release of the SDK rework: npm, PyPI and Packagist 1.4.1 were built from June 2026 code, so everything listed under 1.4.1 below reaches those registries now.
Safer retries (all SDKs, one shared rule). At most one retry, and only where it is safe:
GET(banks, health): a network error or a 5xx.POST /api/verify: a network error, or a 429/503 with aRetry-Afterof at most 60 s.POST /api/verify/batch: only a 429/503 with a shortRetry-After. A batch is never replayed after a 5xx (a 504 means it ran out of server time) or a network error, because the replay hit every bank again and charged every receipt against the rate limit.- Never: timeouts, other 4xx, a geo-blocked bank (502 with
fallbackUrl, which used to cost an extra ~9 s for the same answer), or an error markedretryable: false. A 429 withoutRetry-Afteris no longer retried. sdks/fixtures/api-contract.jsongainedretryCases, which every SDK's tests run.
Fixes
- Dart: responses are decoded as UTF-8 from the bytes, and
httpmust be 1.4.0+ (olderhttpdecodedapplication/jsonwithout a charset as latin1, garbling Amharic names and messages). The Dart SDK constraint is now>=3.4.0, ashttp1.4.0 requires. - Python: direct mode no longer turns off TLS verification for Awash (Awash serves a complete, publicly trusted chain), so nobody on the network path can forge an Awash receipt.
- Python: a
requests.Sessionyou pass in is no longer modified. TheUser-Agentand API key go on each request, so the key never leaks to other hosts the session calls, andclose()leaves your session open. - Python: batch
indexis the position in the response even if a malformed item is skipped, and an item withoutbankraisesValueError(it raisedKeyError). - PHP: cURL is limited to HTTP(S);
curl_close()calls removed (deprecated in PHP 8.5).
Added
betaon banks in Python, Go, PHP and Dart (TypeScript always sets it now): true for M-Pesa and ZamZam.orderId/order_id/OrderIDon results (CBE Birr receipts).- Batch error items keep
fallbackUrlwhen the server sends one. getReceiptUrlrejects a ZamZam receipt id that is not digits only, as the server does.RECOMMENDED_BATCH_CHUNK(15) in every SDK; the docs explain chunking long lists.
Packaging
- Python: the API client depends on
requests>=2.33.0andurllib3>=2.8.0only.beautifulsoup4andpdfplumbermoved to thecheki[direct]extra for the deprecated direct mode (pdfplumber>=0.11.9,pdfminer.six>=20251230); without it direct mode raisesDirectModeUnavailableError. The wheel shipsLICENSE(SPDXlicense = "MIT"). Python 3.14 is tested. - PHP: requires PHP 8.1+; CI tests 8.1, 8.3 and 8.4. The Packagist package contains only the SDK (
.gitattributesexport-ignore), and the rootcomposer.jsonmatchessdks/php/composer.json. - TypeScript:
engines.nodeis>=20. - Go: CI tests the
go 1.21floor and the current release. - Dart: pubspec description within pub.dev's 60 to 180 characters.
Release pipeline
scripts/bump-version.sh --files-only X.Y.Z(release PR) and--tag-only X.Y.Z(tag the merged main); it also updates the Go install pin and checks this changelog.publish.ymlfails when a registry already has the version (except on a re-run), checks the wheel and the Packagist dist, and ends with a job that polls every registry until it serves the release from the tagged commit (scripts/check-registries.mjs).
Full PR: #50 · Changelog: https://github.com/1RB/cheki/blob/v1.5.0/CHANGELOG.md