APEX - Global Intelligent Payments Network
Payment infrastructure foundation: double-entry ledger, explicit-state-machine payment engine, provider adapters, and default-deny regulatory gating
About
APEX is the Global Intelligent Payments Network at payments.codexlabsai.com - payment infrastructure engineered for correctness and regulatory control before growth. The repository contains the complete foundation layer: a double-entry ledger, an explicit-state-machine payment engine, a provider-adapter framework, a regulatory capability registry, merchant lifecycle gating, idempotency and a hash-chained audit log, all on real PostgreSQL. FOUNDATION LAYER - Double-entry ledger: balanced postings enforced, pending and finalized transaction lifecycle, reversals, and overdraft guards - money can never be created or destroyed silently - Payment engine: explicit state machine for authorize, capture, refund and settle flows - no implicit transitions - Provider adapters: a ProviderAdapter contract plus a deterministic SandboxAdapter that faithfully simulates declines, timeouts, outages and capture/refund failures for end-to-end testing - Regulatory capability registry (regcap): default-deny gating per product, country, currency and method - capabilities are granted explicitly, never assumed - Merchant lifecycle: onboarding states and live-processing eligibility checks - Idempotency: Stripe-style idempotency keys with replay, conflict and in-progress semantics - Audit: append-only hash-chained log with verify_chain() for tamper evidence REGULATORY POSTURE APEX performs no live money movement. Live operations are denied by default and require verified merchants plus explicit AUTHORIZED_FOR_LIVE_USE capability grants. The honest record of what exists, what is tested and what remains blocked on partner and regulatory dependencies is documented in APEX_IMPLEMENTATION_PROGRESS.md and APEX_COMPLETION_GATES.md - an unusual degree of candor for the category. QUALITY EVIDENCE Approximately 900 pytest tests covering ledger correctness, payment states, regcap gating, concurrency, audit integrity, API behavior, operations and a dedicated fault lab. An embedded PostgreSQL quickstart runs the full merchant-to-settle demo end to end. DEPLOYED ROLE APEX is already the checkout rail for the estate: Sybil Ops service packs and future product purchases run through APEX checkout so card data never touches individual product platforms. WHY IT MATTERS TO INVESTORS Payments is the highest-leverage and highest-regulation product in the portfolio. APEX is being built the way regulated infrastructure must be - ledger-first, default-deny, audit-everything - which means the hard part is done before scale arrives, and every other Codex product is a guaranteed first customer.
Media & Materials
Milestones5 of 9 completed
- Double-entry ledgerBalanced postings, pending/finalized lifecycle, reversals, overdraft guards
- Payment engine + state machineExplicit authorize/capture/refund/settle transitions, no implicit moves
- Regcap + merchant gatingDefault-deny capability registry per product/country/currency/method
- Sandbox adapter + test suiteDeterministic failure simulation; ~900 pytest tests green
- Estate checkout liveSybil Ops service packs transact through APEX checkout
- Regulatory pathwayLicensing strategy, counsel and partner evaluation for live capabilities
- First provider integrationAcquiring bank / network adapter beyond the sandbox
- PCI DSS programScope reduction, controls and certification
- Live money movementAUTHORIZED_FOR_LIVE_USE grants for verified merchants
Funding Readiness
$4,000,000 - the largest raise in the portfolio because regulation and banking integration are the gating costs: (1) regulatory licensing and counsel - money transmitter / MSB strategy, jurisdiction analysis and the compliance program behind the capability registry; (2) real provider integrations - acquiring bank and card network partnerships to move beyond the sandbox adapter; (3) security certification - PCI DSS scope reduction and audit; (4) ledger hardening and scale - managed Postgres, hot-standby and reconciliation tooling; (5) the estate checkout rollout so every Codex product bills through APEX.
Take-rate on processed volume once live capabilities are granted, plus platform fees for merchant accounts, ledger services and checkout usage by other Codex products and external merchants. Sandbox-first adoption lets integrators build against deterministic behavior before certification. The internal pipeline is immediate: Sybil Ops service packs, Codex Ads advertiser top-ups and product subscriptions are ready-made volume the moment live processing is authorized.
Planning targets only. This is not a securities offering, and no investment commitments or payments are accepted on Hub Share.
Team
- ADAdmin UserLead