Skip to content
Adebayo Obikoya
Back to projects

Side project · 2025–2026

Haystack

One payments API over Paystack, Stripe and Flutterwave.

Haystack’s documentation site
Role
Designer and engineer
Timeline
2025 – 2026
Stack
NestJS, PostgreSQL, Redis, BullMQ
Status
In development; docs public

The problem

A business that takes payments through one provider is stuck with that provider’s outages, fees and API. Adding a second means a second integration: different APIs, webhooks and error codes, plus retry logic and reconciliation across both.

What it does

  • One payment API in front of Paystack, Stripe and Flutterwave
  • Priority-based routing with automatic fallback when a provider fails
  • Incoming and outgoing webhooks
  • A payment state machine with an audit trail
  • Multi-tenancy with API keys, test and live modes, and team roles

Decisions that mattered

  1. 01

    One adapter per provider

    Each provider sits behind the same interface, so routing and fallback never deal with provider-specific APIs or error codes.

  2. 02

    A modular monolith first

    Auth, tenants and payments are separate modules in one service. They can be split out later if load demands it, without paying for distributed systems on day one.

  3. 03

    Payments are a state machine

    Every payment moves through explicit states, and every transition is recorded, so a stuck or disputed payment can always be explained.

Where it is now

In development. The product, architecture and API docs are public.

Next projectPNest CLI