Installation
Install the Express middleware and server packages:
pnpm add @stripe402/express @stripe402/server
This also installs @stripe402/core as a transitive dependency.
Peer Dependencies
The following peer dependencies must be installed separately based on your setup:
Peer Dependency
Required By
Required?
Notes
Install peer dependencies for your chosen store:
# With Redis (recommended)
pnpm add express stripe ioredis
# With PostgreSQL
pnpm add express stripe pg
Choose one client package based on your HTTP library:
Peer dependency: axios >= 1.0.0
No peer dependencies — uses the native fetch API (available in Node.js 18+).
If you're building a custom integration (e.g., a middleware for a different framework), install the core package directly:
This gives you access to all protocol types, header encoding/decoding, HMAC identity derivation, and error types — with zero external dependencies.
Last updated