Skip to main content

Acceptance and test plan

Status: MVP quality gates to refine with engineering, finance and payment partner.

Test layers​

LayerExamples
UnitState transition guards, fee calculations, consent scope, retry classification
IntegrationPrisma transactions, outbox delivery, webhook deduplication, provider adapter
ContractMerchant API OpenAPI, webhook schemas, partner sandbox compatibility
End-to-endBill submission through collection, settlement, payout and merchant invoice
FinancialJournal balancing, payout allocation, reversals, statement reconciliation
SecurityTenant isolation, privilege escalation, MFA, token exposure, webhook spoofing
ResilienceProvider timeout, worker crash, duplicate jobs, reordered events, outage
OperationsManual exception review, audit evidence, backup restoration, incident alert

Must-pass financial scenarios​

  1. Replayed merchant bill submission never creates a second bill.
  2. Two workers racing to collect one bill cannot both initiate payment.
  3. Timeout followed by success webhook resolves to one successful attempt.
  4. Delayed failure webhook cannot overwrite a confirmed success.
  5. Consumer revocation prevents future attempts.
  6. Retry does not bypass network or mandate limits.
  7. Payout only includes settled eligible funds and excludes held/reserved amounts.
  8. Concurrent payout jobs cannot double allocate the same collection.
  9. Payout return creates a reconciled exception and reverses reservation appropriately.
  10. Chargeback after payout is recorded without rewriting historic journal entries.
  11. Merchant receives full bill amount; fee invoice is separate.
  12. Cross-merchant API requests cannot access another merchant's bill or payout.
  13. Every journal balances per currency; all external financial events are traceable.
  14. Provider statement and bank account reconciliation identifies missing/duplicate lines.
  15. Backup/restore and event replay preserve financial integrity.

Pilot launch gates​

Signed partner contracts and legal review; approved mandate and customer communications; documented financial controls; passing automated tests; security assessment; live operations runbook; tested reconciliation; incident response ownership; agreed dispute and refund handling. A passing CI build alone is not sufficient to launch live payments.