{"_id":"@aymenkits/pay-express","name":"@aymenkits/pay-express","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aymenkits/pay-express","version":"1.0.0","description":"Express 4/5 webhook route handler for @aymenkits/pay-stripe — raw-body + stripe-signature handling (the part that's easy to get wrong), envelope-agnostic.","license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit"},"dependencies":{"@aymenkits/pay-stripe":"1.0.0"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/aymenmokhtarikouki/pay-kit.git","directory":"packages/express"},"keywords":["payments","stripe","marketplace","commission","escrow","connect","express"],"engines":{"node":">=18"},"sideEffects":false,"homepage":"https://github.com/aymenmokhtarikouki/pay-kit#readme","bugs":{"url":"https://github.com/aymenmokhtarikouki/pay-kit/issues"},"author":{"name":"Aymen Mokhtari"},"_id":"@aymenkits/pay-express@1.0.0","gitHead":"7561c31e74399dff3ee4c34cbdfcb3f8900a9d17","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-Vs3gen8cl4p7Ov5Dt0PCGjMy4hHQLhDs9ADp9TtnrYFXjTmeNxVfkYJiSBar8k8YLLNghBZvkz0XK8i9+nywbg==","shasum":"e732a655031383717673bbe0fb721ec5de03fda1","tarball":"https://registry.npmjs.org/@aymenkits/pay-express/-/pay-express-1.0.0.tgz","fileCount":7,"unpackedSize":7327,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC01mgMtp+zHyYdwkA/RHvYBM3s6fMWDCMABf2QXxm4PQIhALdRED4UrjZkl95TAMNNTWExuYmMY9B6fsi7E4eepjax"}]},"_npmUser":{"name":"aymen-mokhtari","email":"ayman.mokhtari@proton.me"},"directories":{},"maintainers":[{"name":"aymen-mokhtari","email":"ayman.mokhtari@proton.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pay-express_1.0.0_1783791523657_0.16175160973844904"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-11T17:38:43.472Z","1.0.0":"2026-07-11T17:38:43.779Z","modified":"2026-07-11T17:38:44.048Z"},"maintainers":[{"name":"aymen-mokhtari","email":"ayman.mokhtari@proton.me"}],"description":"Express 4/5 webhook route handler for @aymenkits/pay-stripe — raw-body + stripe-signature handling (the part that's easy to get wrong), envelope-agnostic.","homepage":"https://github.com/aymenmokhtarikouki/pay-kit#readme","keywords":["payments","stripe","marketplace","commission","escrow","connect","express"],"repository":{"type":"git","url":"git+https://github.com/aymenmokhtarikouki/pay-kit.git","directory":"packages/express"},"author":{"name":"Aymen Mokhtari"},"bugs":{"url":"https://github.com/aymenmokhtarikouki/pay-kit/issues"},"license":"MIT","readme":"# @aymenkits/pay-express\n\nStripe webhook route factory with the raw-body handling everyone gets wrong, plus optional endpoint factories (setup-intent, payment methods).\n\n## Install\n\n```bash\nnpm install @aymenkits/pay-express\n```\n\nInstalls with it: `@aymenkits/pay-stripe` (automatic dependency; `@aymenkits/pay-core` transitively).\n\n## You provide\n\n- Your Express app (the webhook route must be mounted BEFORE any json body parser)\n- Your webhook signing secret\n\nThe package never owns tables, never imports an ORM, HTTP framework, or\nprovider SDK it can take as a parameter — storage and delivery are seams your\napp implements on its own stack.\n\n## Quick example\n\n```ts\nimport { createWebhookRoute } from '@aymenkits/pay-express'\n\napp.post('/stripe/webhook', createWebhookRoute({ gateway, secret, onEvent }))\n```\n\n## Pairs with\n\n- `@aymenkits/pay-stripe` gateway + event router\n\nKits pair **by shape, never by import** — pass the sibling kit, your own\nservice, or a stub in tests.\n\n## Docs\n\nFull contracts and integration guides live in the repo:\nhttps://github.com/aymenmokhtarikouki/pay-kit (`contracts/`, `docs/`).\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-b14d97ffa8709759e1213b4049b92312"}