Kubai Kevin

47 articles tagged Payments

Senior without the title: what stalls engineers

Senior work without the senior title: how freelance engineers build real technical depth through decision logs, timezone-aware design, and payment…

16 min read · 18 November 2026

Human-in-the-loop: when agents need a human veto

Design agent approval gates that live in the executor, not the prompt: signed single-use tokens, per-action scope, audit trails and anti-rubber-stamp checks.

14 min read · 16 November 2026

Freelance vs full-time: African devs' real tradeoffs

A structural comparison of freelance contracts and full-time remote jobs for African developers: risk transfer, utilization, tax, IP, and a worked pay comparison.

12 min read · 14 November 2026

Saga pattern: orchestration vs choreography in payments

How payment sagas coordinate steps, why refunds are not charge reversals, and a decision framework for choosing orchestration or choreography.

16 min read · 10 November 2026

USSD/SMS fallback: the session trap

Why USSD sessions and SMS receipts mislead fallback designs, and how to make the ledger the source of truth with idempotent state transitions.

16 min read · 6 November 2026

Audit trails for AI agents: what breaks first

Design append-only decision records for AI agents: write-ahead ordering, policy snapshots, idempotency keys, and reconstruction drills that expose gaps.

15 min read · 5 November 2026

PAPSS and mobile money: where integration breaks

Why cross-border PAPSS and mobile money integrations break: hold-and-resolve state machines, identifier resolution, and pending-set reconciliation.

19 min read · 4 November 2026

BM25 vs dense embeddings: hybrid search reality

How BM25 and dense retrieval fail differently, why score fusion is not free, and how to choose RRF, weighted fusion, or a cascade for your corpus.

14 min read · 3 November 2026

Small language models: the classifier trap

Why compact classifiers fail on rare inputs, and how per-label thresholds, guardrails and score monitoring contain the damage.

15 min read · 31 October 2026

ISO 20022: where payment rails actually break

ISO 20022 migrations fail in mapping policy, code-list governance and character rules, not XML parsing. A layered design and checklist for payment rails.

17 min read · 24 October 2026

Property-based testing vs example tests: the bug gap

How example-based and property-based tests differ in what they catch, what each costs to maintain, and how to split work between them in financial code.

18 min read · 20 October 2026

PCI DSS architecture: 12 requirements that matter

Map PCI DSS requirements to concrete architecture decisions: CDE boundary, envelope encryption and key separation, immutable logging, CI/CD controls, and scope reduction.

14 min read · 19 October 2026

Open banking APIs: the integration traps

Open banking integration failures come from semantic gaps between markets. Here is how consent, idempotency and errors differ, and how to test.

15 min read · 17 October 2026

Double-entry ledger: concurrent write errors

Why concurrent writes corrupt double-entry ledgers, and how to enforce the debit-equals-credit invariant with isolation, locks, and triggers.

15 min read · 1 October 2026

Settlement vs clearing: backend engineer's guide

Clearing produces obligations; settlement moves money. How to model both ledgers, reconcile them, and avoid the schema mistakes that break finance.

15 min read · 28 September 2026

AI features: M-Pesa, Paystack, Flutterwave traps

Payment webhooks from M-Pesa, Paystack and Flutterwave disagree on timing, idempotency and error semantics. Here is how to normalize them before an AI feature reads them.

12 min read · 23 September 2026

Idempotency keys: what they fix, what they don't

How idempotency keys work, where they fail, and the failure modes they don't cover: concurrent retries, key reuse, expiry, and partial failures.

14 min read · 21 September 2026

Offline agent workflows for last-mile ops

How to build an offline-first field agent client: IndexedDB schema, UUIDv7 identity, background sync, idempotent batch upload, and clock-drift handling.

15 min read · 21 September 2026

Dead-letter queues: stop poison messages

Design retry caps, DLQs, and alerts so a poison message is isolated in seconds. Includes working Redis Queue code and pytest tests.

15 min read · 21 September 2026

Stop assuming payment APIs never fail

How to combine AI recommendations with M-Pesa, Paystack and Flutterwave calls so gateway timeouts, rate limits and duplicate charges don't break checkout.

13 min read · 13 September 2026

Why do production agents still need humans?

Why production agents still need humans: designing HITL boundaries, error-code routing, cache fallbacks, and how to measure the results.

12 min read · 9 September 2026

AI features rot faster than you build them

Model APIs, prompts and schemas change under you. Here is how to make AI feature contracts explicit, versioned and reversible without a rewrite.

15 min read · 27 August 2026

AI payments break in M-Pesa first

Payment webhooks arrive duplicated and out of order. Here is how to normalize provider events, dedupe them, and reconcile an AI feature store safely.

14 min read · 23 August 2026

Currency switch fails in Ghana: one config file to rule…

Mobile money providers put currency codes in different places. Learn a deterministic extraction, validation, and normalization pipeline that stops silent fallbacks.

13 min read · 13 August 2026

Buy vs build AI: 3 hard rules for 2026

A framework for deciding which AI components to build versus buy, with failure modes, measurement methods, and code for caching and retries.

15 min read · 11 August 2026

AWS CloudWatch Synthetics for AI pipelines

Build CloudWatch Synthetics canaries that exercise a full AI pipeline journey, not just an endpoint ping, and alarm on whole-flow failure.

13 min read · 10 August 2026

Offline-first money apps with DynamoDB Streams

Design an offline-first mobile-money sync pipeline on DynamoDB Streams: idempotency keys, conditional balance writes, DLQ handling, and how to measure it.

15 min read · 8 August 2026

Mobile money agent fees: why your bot keeps failing

USSD session timeouts, not payment errors, break mobile money bots in production. Diagnose the session contract mismatch and fix it with per-request clients.

13 min read · 5 August 2026

Designing Reliable Webhook Pipelines for African Payment APIs

How to build idempotent, resilient webhook pipelines for M-Pesa, Paystack and Flutterwave APIs, including retries, deduplication and failure modes.

12 min read · 1 August 2026

Agents keep breaking prod: 3 boundary rules you still need

Agents that mutate external state fail silently when 2xx is mistaken for completion. Three boundary rules: outcome polling, schema drift gates, atomic claims.

14 min read · 17 July 2026

Agent context: short-term vs long-term memory

Compare Redis-style short-term agent context with Postgres event logs: latency, durability, auditability, cost, and how to measure each.

15 min read · 9 July 2026

AI memory systems: context that survives sessions

Why AI agents silently lose memory across restarts, how to scope memory to a session, and how to test persistence before production.

12 min read · 2 July 2026

M-Pesa Daraja 2.0: your 2026 migration checklist

A practical checklist for migrating an M-Pesa Daraja integration across a breaking API change: auth, idempotency, callbacks, error handling and rollout.

14 min read · 2 July 2026

Double the price, double the revenue

How to design four-tier pricing for a developer tool: seat limits, usage counters, feature gates, plan enforcement, and how to measure whether it converts.

13 min read · 30 June 2026

Show real work, not AI clones

A hiring-focused guide to portfolio projects that demonstrate retry logic, circuit breakers, latency percentiles and honest post-mortems for unreliable networks.

18 min read · 29 June 2026

NDPR 2026 broke fintech APIs

How regulatory transport rules and intermittent mobile connectivity change fintech API design, with worked latency arithmetic and a concrete measurement plan.

12 min read · 26 June 2026

Pick one: Stripe, Lemon Squeezy, Paddle in 2026

A constraint-based framework for choosing between Stripe, Paddle and Lemon Squeezy, with latency tests, cost math and a 30-day pilot checklist.

14 min read · 25 June 2026

Self-healing pipelines: Argo vs Crossplane in 2026

Compare Argo CD and Crossplane for self-healing infrastructure: reconciliation models, health signals, failure modes, and how to measure detection and recovery yourself.

13 min read · 25 June 2026

One payment stack for Kenya, Nigeria, Ghana

How to unify M-Pesa, Flutterwave, Paystack and mobile money behind one payment abstraction, with fallback logic, reconciliation and compliance.

13 min read · 20 June 2026

Regulations forced better APIs: the 2026 fintech

Why payment APIs need durable state machines, explicit retry policies, and status endpoints that survive restarts — and when the old synchronous playbook still works.

13 min read · 20 June 2026

Why AI Interview Graders Reward Keywords Over Correct Design

AI interview graders score answers against training-data patterns, not correctness. Here is how the bias shows up and how to write answers that survive it.

12 min read · 14 June 2026

Reconciling mobile money: edge cases banks ignore

Why provider webhooks are only approximate signals, and how to reconcile them against MNO ledgers with tolerance windows, dedup keys and batch jobs.

17 min read · 12 June 2026

2026 tech salaries: where cuts stopped, where raises

How funding stage, equity structure and cross-border tax shape 2026 tech pay, plus a worked offer comparison and a checklist for judging any package.

12 min read · 10 June 2026

Merge three payment APIs into one system

How to consolidate multiple payment provider integrations behind one gateway: routing, idempotency, webhook normalization, and observability.

15 min read · 10 June 2026

Choose no-code only when

A decision framework for no-code vs custom code: export portability, row and API limits, latency SLOs, and data residency, with a worked example and checklists.

12 min read · 9 June 2026

Remote salary: negotiate without sounding cheap

How to build a cost, timezone, and risk packet that answers a client's pricing questions before they ask, with scripts and a worked example.

14 min read · 8 June 2026

Multi-agent systems break first

Why multi-agent systems break in production: non-determinism, state bloat, silent data loss, and how to instrument and fix each failure mode.

13 min read · 8 June 2026