Skip to main content

EP-MEL-05 — Payment Gateway with Cash on Arrival, MFS, Cards

Companion: Backlog README · EPICS.md · canonical: 07-epics-and-user-stories.md §7

Summary

WaveR1 (+ MFS expansion in R2)
PriorityP0
Primary ownerpayment-gateway-service
Participating servicesbilling-service, reservation-service, notification-service
Journeys realisedJ-04 (Pay & Hold), J-05 (Front-Desk Check-in), J-08 (End-of-Day Reconciliation)
WorkflowsWF-03
Frontend surfacesTenant Booking Web · Tenant Booking Mobile · Electron Desktop
Story count8

Outcome

A unified payment surface for card (3DS), paypal, cash_on_arrival, and regional MFS adapters, with full lifecycle (capture, refund, chargeback, webhook idempotency) and end-of-day reconciliation.

Cross-cutting AC for this epic

  • All amounts as bigint micro-units; currency code stored alongside.
  • Webhook handlers idempotent and replay-safe (signature + dedupe by provider_event_id).
  • PCI scope strictly limited to payment-gateway-service; tokens only outside.
  • Refunds and chargebacks emit audit events; manual finance approval required ≥ threshold.

Stories

IDTitle
US-MEL-0042Card payment with 3DS
US-MEL-0043PayPal payment
US-MEL-0044Cash-on-arrival with deposit policy
US-MEL-0045MFS (Mobile Financial Services) adapters
US-MEL-0046Refund (full and partial)
US-MEL-0047Chargeback handling
US-MEL-0048Idempotent webhook processing
US-MEL-0049End-of-day cash drawer reconciliation

Full AC in ../07-epics-and-user-stories.md §7.

Cross-references