{"_id":"@aymenkits/pay-core","name":"@aymenkits/pay-core","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aymenkits/pay-core","version":"1.0.0","description":"Pure money math: Charge = typed components (base/delivery/tip/…), FeePolicy with per-component commission and per-merchant overrides, escrow release math (commission + accrued-fee recoup), subscription tier pricing. No Stripe, no I/O — fully unit-testable","license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/aymenmokhtarikouki/pay-kit.git","directory":"packages/core"},"keywords":["payments","stripe","marketplace","commission","escrow","connect","core"],"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-core@1.0.0","gitHead":"7561c31e74399dff3ee4c34cbdfcb3f8900a9d17","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-Z11HFY7QNyqCraTVCE1UdQyEKBB3Y153GpM9rZqUn+NNx7C+C/tRwxVWb94Bhxcc4oo3uVXGPuDDfIHBuGIL9w==","shasum":"8207f63fcbcae0ec80c79615f8795ebbba9a1c81","tarball":"https://registry.npmjs.org/@aymenkits/pay-core/-/pay-core-1.0.0.tgz","fileCount":23,"unpackedSize":30009,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGmB92cjV8zyHTTcYuDc/ra47nAkWxOed0t8EyywVsFwAiBXgq8UpQ6IFwtuoNwZs9oTFV02STdGB2e+W/qC2timnA=="}]},"_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-core_1.0.0_1783791522272_0.4722259762757455"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-11T17:38:41.945Z","1.0.0":"2026-07-11T17:38:42.412Z","modified":"2026-07-11T17:38:42.600Z"},"maintainers":[{"name":"aymen-mokhtari","email":"ayman.mokhtari@proton.me"}],"description":"Pure money math: Charge = typed components (base/delivery/tip/…), FeePolicy with per-component commission and per-merchant overrides, escrow release math (commission + accrued-fee recoup), subscription tier pricing. No Stripe, no I/O — fully unit-testable","homepage":"https://github.com/aymenmokhtarikouki/pay-kit#readme","keywords":["payments","stripe","marketplace","commission","escrow","connect","core"],"repository":{"type":"git","url":"git+https://github.com/aymenmokhtarikouki/pay-kit.git","directory":"packages/core"},"author":{"name":"Aymen Mokhtari"},"bugs":{"url":"https://github.com/aymenmokhtarikouki/pay-kit/issues"},"license":"MIT","readme":"# @aymenkits/pay-core\n\nMarketplace money math, no Stripe import: a Charge is typed components (base/delivery/tip/…), FeePolicy resolves commission per component type with per-merchant overrides, instant vs escrow flow strategies, and computeRelease nets accrued platform fees out of payouts.\n\n## Install\n\n```bash\nnpm install @aymenkits/pay-core\n```\n\nInstalls with it: nothing else — zero dependencies (pure, fully unit-testable).\n\n## You provide\n\n- Your fee policy numbers (e.g. `{ defaultPercent: 10, perComponent: { tip: 0 } }`)\n- Stores for customers/merchant accounts/payment records when using the flows\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 { computeFees, computeRelease } from '@aymenkits/pay-core'\n\nconst fees = computeFees(charge, merchant, policy)\n// → { total, applicationFee, merchantNet, feeByComponent }\n```\n\n## Pairs with\n\n- `@aymenkits/pay-stripe` executes what this computes\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-dedb33357660d322fad99bebad310997"}