{"_id":"@bizup-pay/mock-server","_rev":"2-c8f1052d934371b3fa0090642fc8c5b3","name":"@bizup-pay/mock-server","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@bizup-pay/mock-server","version":"0.1.0","keywords":["payments","israel","mock","testing","bizup-pay"],"author":{"name":"BizUp.dev"},"license":"MIT","_id":"@bizup-pay/mock-server@0.1.0","maintainers":[{"name":"bizup","email":"cto@bizup.dev"}],"homepage":"https://pay.bizup.dev","bugs":{"url":"https://github.com/bizup-dev/bizup-pay/issues"},"dist":{"shasum":"d42b8587ec6a7c3ef045d13abcc6371a487aea5a","tarball":"https://registry.npmjs.org/@bizup-pay/mock-server/-/mock-server-0.1.0.tgz","fileCount":29,"integrity":"sha512-co+dleulRCXvFSpJ5IPnNX4J6OrMoH9q0YEWLc/jVWmPt4o+bsUvNTpMY7jXCQ3Pz0KxIXCODRQUC5egcOlJ6Q==","signatures":[{"sig":"MEUCIQCJ7R5DuKrVXkr2Pcg1B9EaH0bqbjb0Oi/PivZosaNcLAIgSKek4N1qy9BPEIRPT7QF5Zr+NkSvFMFnmaSP1L/AmbE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":134251},"main":"./dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=20"},"gitHead":"43387d94b469c52078110f1f235f51b05e51465e","scripts":{"test":"vitest run","build":"tsc","start":"node dist/standalone.js"},"_npmUser":{"name":"bizup","email":"cto@bizup.dev"},"repository":{"url":"git+https://github.com/bizup-dev/bizup-pay.git","type":"git","directory":"packages/mock-server"},"_npmVersion":"11.6.2","description":"Mock payment provider servers for testing BizUp Pay — DO NOT use in production","directories":{},"_nodeVersion":"25.2.1","dependencies":{"@bizup-pay/core":"0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mock-server_0.1.0_1774174394407_0.06231826673432472","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@bizup-pay/mock-server","version":"0.1.1","description":"Mock payment provider servers for testing BizUp Pay — DO NOT use in production","author":{"name":"BizUp.dev"},"license":"MIT","homepage":"https://pay.bizup.dev","repository":{"type":"git","url":"git+https://github.com/bizup-dev/bizup-pay.git","directory":"packages/mock-server"},"bugs":{"url":"https://github.com/bizup-dev/bizup-pay/issues"},"keywords":["payments","israel","mock","testing","bizup-pay"],"main":"./dist/index.js","types":"./dist/index.d.ts","publishConfig":{"access":"public"},"engines":{"node":">=20"},"scripts":{"build":"tsc","test":"vitest run","start":"node dist/standalone.js"},"dependencies":{"@bizup-pay/core":"0.1.1"},"gitHead":"25b25a715e969f1ba3b483f866d8cdbb82908579","_id":"@bizup-pay/mock-server@0.1.1","_nodeVersion":"25.2.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-bKSGoPX0SwURSrx2Ecyg3kKx6oQzWpmuRez0i11+/dz9HnQqab6jP3BjTTjWLG5mzSFDNSH7YOp3Gd5uHWVIqQ==","shasum":"9b6467c1781d8288706fcc85660873c0c72f4dd1","tarball":"https://registry.npmjs.org/@bizup-pay/mock-server/-/mock-server-0.1.1.tgz","fileCount":30,"unpackedSize":136489,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCbKkX3qhJVzYNuSymLmG3abn7hZWOrJTEpx0CENEqfhgIgaTOSV7VfuYco3FFe/V9BsJpenyLDkDCNJLtuNRxE2Tg="}]},"_npmUser":{"name":"bizup","email":"cto@bizup.dev"},"directories":{},"maintainers":[{"name":"bizup","email":"cto@bizup.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mock-server_0.1.1_1774349968028_0.7093043176814016"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-22T10:13:14.326Z","modified":"2026-03-24T10:59:28.288Z","0.1.0":"2026-03-22T10:13:14.552Z","0.1.1":"2026-03-24T10:59:28.171Z"},"bugs":{"url":"https://github.com/bizup-dev/bizup-pay/issues"},"author":{"name":"BizUp.dev"},"license":"MIT","homepage":"https://pay.bizup.dev","keywords":["payments","israel","mock","testing","bizup-pay"],"repository":{"type":"git","url":"git+https://github.com/bizup-dev/bizup-pay.git","directory":"packages/mock-server"},"description":"Mock payment provider servers for testing BizUp Pay — DO NOT use in production","maintainers":[{"name":"bizup","email":"cto@bizup.dev"}],"readme":"# @bizup-pay/mock-server\n\nMock payment servers for [BizUp Pay](https://pay.bizup.dev) — one SDK for every Israeli payment provider.\n\n> Write payment code once. Swap providers by changing one line of config. TypeScript-first, framework-agnostic, production-ready.\n\n## What This Package Does\n\n`@bizup-pay/mock-server` provides local mock implementations of all supported payment provider APIs. Use it for **development and testing** — run your full payment flow locally without hitting real provider sandboxes.\n\n**Do not use in production.**\n\n## How It Fits Together\n\nA typical BizUp Pay integration uses three packages:\n\n| Package | Role |\n|---------|------|\n| **`@bizup-pay/core`** | Shared types, provider interface, factory |\n| **`@bizup-pay/client`** | Browser SDK — mounts payment pages via iframe, modal, or redirect |\n| **Provider adapter** | Connects to a specific gateway (Morning, Cardcom, iCount, Grow) |\n\nThis package **replaces the real provider APIs** during development. Point your provider config at `localhost` and get instant, deterministic payment flows with webhook delivery.\n\n## Install\n\n```bash\nnpm install --save-dev @bizup-pay/mock-server\n```\n\n## Usage\n\n### Standalone Server\n\n```bash\nnpx bizup-mock-server\n# Starts mock servers on ports 4100, 4200, 4300\n```\n\n### Programmatic\n\n```typescript\nimport { createMockServer } from '@bizup-pay/mock-server'\n\nconst server = createMockServer({ autoComplete: true })\nawait server.start()\n\n// Run your tests...\n\nawait server.stop()\n```\n\n## Features\n\n- Mock payment HTML pages with success/fail buttons\n- Webhook delivery to your `webhookUrl`\n- `postMessage` support for iframe/modal integration testing\n- `autoComplete` mode for fully automated test flows\n- Transaction storage for `getTransaction()` testing\n- `reset()` to clear state between tests\n\n## Mocked Providers\n\n- Morning (Green Invoice)\n- Cardcom\n- iCount\n- Grow.il (Meshulam)\n\n## Documentation\n\nFull documentation, setup guides, and examples: **[pay.bizup.dev](https://pay.bizup.dev)**\n\n## Links\n\n- [Documentation](https://pay.bizup.dev)\n- [GitHub](https://github.com/bizup-dev/bizup-pay)\n- [Issues](https://github.com/bizup-dev/bizup-pay/issues)\n\n## License\n\nMIT\n","readmeFilename":"README.md"}