Tollstile

Flows

The order in which a charge settles and the service runs.

Pre-release · planned API
FlowOrderHandler failsTypical rails
authorizationreserve · run · complete · settlerelease — nothing movedx402, KYAPay, sessions, L402, credits
upfrontreserve · settle · run · completerefundMPP with Stripe (captured at verification)
escrowsettle deposit · run · settle finalrefund the depositPlanned — refused in this version
  • Each rail declares the flows it supports. A route without flow uses the first the rail supports, preferring authorization, where the payer is charged only for work that ran.
  • upfront requires a rail that can refund.
  • Variable prices (upTo) require authorization.
  • Choose explicitly with toll.price("$0.05", { flow: "upfront" }). Unsupported combinations fail where the route is defined.