Stripe starter module
Shared library
Centralizes typed Stripe setup and payment helpers across every route.
- Files
- 4
- Lines
- 472
- Languages
- TypeScript
Included files
This page lists paths and purposes, not source contents.
FilePurposeLanguageLines
src/lib/app-adapter.ts
Connects generic Stripe handlers to your app's database and access rules.
TypeScript
190 lines
src/lib/env.ts
Reads payment and email settings from the environment and rejects missing values.
TypeScript
126 lines
src/lib/stripe-client.ts
Creates the Stripe client and verifies webhook signatures for Node or edge runtimes.
TypeScript
38 lines
src/lib/types.ts
Defines the app-owned storage operations that payment handlers need.
TypeScript
118 lines