Installation
Quick Start
How It Works
The middleware returns:nullif payment is valid (your handler proceeds)- A
Responseobject if payment is missing/invalid (returned to client)
Settlement Modes
Control how payments are settled after verification:Configuration
Route Configuration
For per-route behavior, usecreateRouteAwareBunMiddleware:
Tips
The
amount can be a human-readable string like "1.0" — no manual decimal calculation needed.More Information
See@armory-sh/middleware-bun for full configuration options.