{"_id":"@bizup-pay/core","_rev":"2-18d50e84ad192000303f0a5275e002c0","name":"@bizup-pay/core","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@bizup-pay/core","version":"0.1.0","keywords":["payments","israel","payment-gateway","typescript","bizup-pay"],"author":{"name":"BizUp.dev"},"license":"MIT","_id":"@bizup-pay/core@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":"4dfd21f8796466e7505c595281959f6d4233e7a5","tarball":"https://registry.npmjs.org/@bizup-pay/core/-/core-0.1.0.tgz","fileCount":25,"integrity":"sha512-wht0QrL1ekewoJKUg3A1KMjifBQd+Sd97P/Sd1xiLxtJVHJQEQB6Er3QAJpSt57rGhO2H7qcF9kRjlRZKaLJLQ==","signatures":[{"sig":"MEQCIGAgnJEvGY8JL4QeG2U5Nudl1WJ7/I/L7TIY6Yys2a3dAiBL0rAh3f7F1pvKimtS0CWi5u2CCS3WRxaYYGklCbbl/Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21073},"main":"./dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=20"},"gitHead":"43387d94b469c52078110f1f235f51b05e51465e","scripts":{"test":"vitest run","build":"tsc"},"_npmUser":{"name":"bizup","email":"cto@bizup.dev"},"repository":{"url":"git+https://github.com/bizup-dev/bizup-pay.git","type":"git","directory":"packages/core"},"_npmVersion":"11.6.2","description":"Core types and factory for BizUp Pay — unified Israeli payment SDK","directories":{},"_nodeVersion":"25.2.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/core_0.1.0_1774174376705_0.5255814727243684","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@bizup-pay/core","version":"0.1.1","description":"Core types and factory for BizUp Pay — unified Israeli payment SDK","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/core"},"bugs":{"url":"https://github.com/bizup-dev/bizup-pay/issues"},"keywords":["payments","israel","payment-gateway","typescript","bizup-pay"],"main":"./dist/index.js","types":"./dist/index.d.ts","publishConfig":{"access":"public"},"engines":{"node":">=20"},"scripts":{"build":"tsc","test":"vitest run"},"gitHead":"25b25a715e969f1ba3b483f866d8cdbb82908579","_id":"@bizup-pay/core@0.1.1","_nodeVersion":"25.2.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-PIU8iVJHIqtfJy/afDIFAd8VUY2exwUuv1lZJ077vXi+DU+Yzvjp6oFquOS3ukJjU4hgktvRlRiOzSDFcL1Wxw==","shasum":"3dc7b1d1f52ad382d60d753950a4453317f70e06","tarball":"https://registry.npmjs.org/@bizup-pay/core/-/core-0.1.1.tgz","fileCount":26,"unpackedSize":23990,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDSX8dM5DGy8yYYlWEsAbGqtjHLY9mi9+h1YL2AAWot9wIhAOwd00XLJqlN9+oOJdj+sYeJKwQnKCnTZyw2V51gkZnp"}]},"_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/core_0.1.1_1774349948541_0.8676618701467846"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-22T10:12:56.655Z","modified":"2026-03-24T10:59:09.094Z","0.1.0":"2026-03-22T10:12:56.855Z","0.1.1":"2026-03-24T10:59:08.703Z"},"bugs":{"url":"https://github.com/bizup-dev/bizup-pay/issues"},"author":{"name":"BizUp.dev"},"license":"MIT","homepage":"https://pay.bizup.dev","keywords":["payments","israel","payment-gateway","typescript","bizup-pay"],"repository":{"type":"git","url":"git+https://github.com/bizup-dev/bizup-pay.git","directory":"packages/core"},"description":"Core types and factory for BizUp Pay — unified Israeli payment SDK","maintainers":[{"name":"bizup","email":"cto@bizup.dev"}],"readme":"# @bizup-pay/core\n\nCore types, interfaces, and provider factory 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/core` is the foundation of the BizUp Pay SDK. It defines the unified `BizupProvider` interface that all provider adapters implement, along with shared types, error handling, and the `createProvider()` factory function.\n\n**You always need this package** — every BizUp Pay integration starts here.\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 (this package) |\n| **`@bizup-pay/client`** | Browser SDK — mounts payment pages via iframe, modal, or redirect |\n| **Provider adapter** | Connects to a specific gateway: `@bizup-pay/morning`, `@bizup-pay/cardcom`, `@bizup-pay/icount`, or `@bizup-pay/grow` |\n\nWant to switch from Cardcom to Morning? Change one line of config — your application code stays the same.\n\n## Install\n\n```bash\nnpm install @bizup-pay/core @bizup-pay/cardcom  # pick your provider\n```\n\n## Quick Start\n\n```typescript\nimport { createProvider } from '@bizup-pay/core'\nimport '@bizup-pay/cardcom' // registers the provider\n\nconst provider = createProvider('cardcom', {\n  terminalNumber: process.env.CARDCOM_TERMINAL,\n  apiName: process.env.CARDCOM_API_NAME,\n})\n\nconst session = await provider.createSession({\n  amount: 100,\n  description: 'Order #123',\n  successUrl: 'https://example.com/success',\n  webhookUrl: 'https://example.com/webhook',\n})\n\n// session.pageUrl → redirect the customer here\n```\n\n## Provider Interface\n\nEvery provider adapter implements:\n\n```typescript\ninterface BizupProvider {\n  readonly name: ProviderName\n\n  createSession(params: CreateSessionParams): Promise<BizupPaymentSession>\n  getTransaction(id: string): Promise<BizupTransaction>\n  refund(params: RefundParams): Promise<BizupRefund>\n  parseWebhook(body: unknown, headers?: Record<string, string>): Promise<BizupWebhookEvent>\n}\n```\n\n## Available Providers\n\n- [`@bizup-pay/cardcom`](https://www.npmjs.com/package/@bizup-pay/cardcom) — Cardcom\n- [`@bizup-pay/morning`](https://www.npmjs.com/package/@bizup-pay/morning) — Morning (Green Invoice)\n- [`@bizup-pay/icount`](https://www.npmjs.com/package/@bizup-pay/icount) — iCount\n- [`@bizup-pay/grow`](https://www.npmjs.com/package/@bizup-pay/grow) — 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"}