Skip to content

REPLICA · NOT AN EMPLOYER REPO

Supplier settlement simulator

A mock payment with a timeout, a retry, and a reconciliation line. Tests start red. Edit the service, then run. The preview calls that same process. No wallet, no chain, no employer exam.

BCL-402 · settlement-rail · local replica

Pay supplier 100 under key pay-1. Record a timeout. The retry with the same key must not debit again.

FAIL retry does not pay twice1 failed · 2 passed

Where to look

If posted already has the key, do not push another DEBIT. Return ok:false and leave debits at 1.

Client of your service. Same process as the tests.

Debits0
Rail
Keys0
  • No ledger lines yet.

$ npm test · settlement-rail

  • PASSfirst pay posts one debit
  • PASStimeout is recorded
  • FAILretry does not pay twicelines ["DEBIT 100 pay-1","TIMEOUT","DEBIT 100 pay-1"]

Seats that use this task

All test tasks