Skip to content
Back to case studies
·9 weeks

Dual-gateway payments for a HU marketplace · zero lost tx in 6 months

Unified Stripe Connect + SimplePay under one payment abstraction for a Hungarian B2B marketplace. Zero lost transactions in 6 months; automatic failover when either gateway had an incident.

THE PROBLEM

[1/3]

  • 01Stripe alone didn't cover HUF-first retail sellers who required SimplePay.
  • 02SimplePay alone didn't offer cross-border SCA / Stripe Connect-like seller onboarding.
  • 03Manual reconciliation between two gateways was error-prone.
  • 04Any gateway outage = lost orders. A dual-gateway setup added race-condition risk.

THE SOLUTION

[2/3]

  • Payment abstraction layer · one interface, two drivers (Stripe + SimplePay).
  • Temporal workflow for each payment · survives restarts, handles idempotency.
  • Automatic failover when the primary gateway returns >5% 5xx in 60s.
  • Reconciliation job runs hourly · flags any divergence between gateways + ledger.

Technologies

Next.jsStripe ConnectSimplePayIdempotency-KeyTemporal

THE OUTCOME

[3/3]

  • 01Zero lost transactions in 6 months.
  • 02Automatic failover engaged 4 times (gateway outages) · no customer impact.
  • 03Reconciliation discrepancy rate: 0.002% (all resolved within 24h).
  • 04Seller onboarding latency (SimplePay): 3 days → 4 hours.

Let's get started.

Send an email or book a 30-minute call.