{"_id":"@0x0pharaoh/next-paystack","_rev":"2-fb40ad9152ddc8be81807a3ebe78e782","name":"@0x0pharaoh/next-paystack","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@0x0pharaoh/next-paystack","version":"1.0.0","keywords":["Javascript","github","NextJs","Open Source","payments","paystack","Gateway"],"author":{"name":"Olusegun Ayeni","email":"nsegun5@gmail.com"},"license":"MIT","_id":"@0x0pharaoh/next-paystack@1.0.0","maintainers":[{"name":"moin.dev","email":"moins.dev@gmail.com"}],"homepage":"https://github.com/0x0pharaoh/next-paystack?tab=readme-ov-file","bugs":{"url":"https://github.com/0x0pharaoh/next-paystack/issues"},"dist":{"shasum":"f5ca75e09197eed21fe86d098ebcb019ebe437ed","tarball":"https://registry.npmjs.org/@0x0pharaoh/next-paystack/-/next-paystack-1.0.0.tgz","fileCount":19,"integrity":"sha512-YKmCvHFNUfULgkmYtpuGqJl6QmGmd/nAg/WtGdOF4iZ2HTwRXjQhaNkJzDCblur8eHi4Iv0iA92bzhUdCA+TUw==","signatures":[{"sig":"MEUCIAOSAGz+KdCtCJSy6DKXqbgx6vgrv5mxrpc7XXP5blA9AiEArr9F+dhzgLAge3SKa8EbWYL/KrYwNlw36vFwmaemm9g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":680947},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.es.js","require":"./dist/index.js"}},"gitHead":"a558b14c3a47fd4ba5bc551d566f46bb6bbe9bca","scripts":{"lint":"eslint .","test":"jest --env=jsdom --runInBand","build":"npm run build:types && rollup -c","format":"prettier --write .","lint:fix":"npm run lint -- --fix","test:watch":"jest --watch --verbose --env=jsdom","build:types":"tsc -p tsconfig.build.json","build:watch":"rollup -c --watch"},"typings":"dist/index.d.ts","_npmUser":{"name":"moin.dev","email":"moins.dev@gmail.com"},"repository":{"url":"git+https://github.com/0x0pharaoh/next-paystack.git","type":"git"},"_npmVersion":"11.6.2","description":"This is an nextJS library for implementing paystack payment gateway","directories":{},"jsnext:main":"dist/index.es.js","sideEffects":false,"_nodeVersion":"25.0.0","dependencies":{"@paystack/inline-js":"^2.19.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","react":"^19.2.0","eslint":"^9.8.0","rollup":"^4.20.0","globals":"^15.9.0","ts-jest":"^29.2.4","prettier":"^3.3.3","react-dom":"^19.2.0","@eslint/js":"^9.8.0","typescript":"^5.5.4","@types/jest":"^29.5.12","@types/react":"^19.0.0","@types/react-dom":"^19.0.0","typescript-eslint":"^8.0.0","eslint-plugin-jest":"^28.7.0","eslint-plugin-react":"^7.35.0","@testing-library/react":"^16.0.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1","jest-environment-jsdom":"^29.5.0","@rollup/plugin-commonjs":"^26.0.1","@rollup/plugin-typescript":"^11.1.6","@rollup/plugin-node-resolve":"^15.0.1","rollup-plugin-peer-deps-external":"^2.2.4"},"peerDependencies":{"next":"^16.0.0","react":"^18.0.0 || ^19.0.0","react-dom":"^18.0.0 || ^19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/next-paystack_1.0.0_1775738959671_0.3734352438473818","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@0x0pharaoh/next-paystack","version":"1.0.1","description":"This is an nextJS library for implementing paystack payment gateway","main":"dist/index.js","module":"dist/index.es.js","typings":"dist/index.d.ts","types":"dist/index.d.ts","jsnext:main":"dist/index.es.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.es.js","require":"./dist/index.js"}},"sideEffects":false,"scripts":{"build:types":"tsc -p tsconfig.build.json","build":"npm run build:types && rollup -c","build:watch":"rollup -c --watch","format":"prettier --write .","lint":"eslint .","lint:fix":"npm run lint -- --fix","test":"jest --env=jsdom --runInBand","test:watch":"jest --watch --verbose --env=jsdom"},"repository":{"type":"git","url":"git+https://github.com/0x0pharaoh/next-paystack.git"},"keywords":["Javascript","github","NextJs","Open Source","payments","paystack","Gateway"],"author":{"name":"Olusegun Ayeni","email":"nsegun5@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/0x0pharaoh/next-paystack/issues"},"homepage":"https://github.com/0x0pharaoh/next-paystack?tab=readme-ov-file","peerDependencies":{"next":"^16.0.0","react":"^18.0.0 || ^19.0.0","react-dom":"^18.0.0 || ^19.0.0"},"dependencies":{"@paystack/inline-js":"^2.19.2"},"devDependencies":{"@eslint/js":"^9.8.0","@rollup/plugin-commonjs":"^26.0.1","@rollup/plugin-node-resolve":"^15.0.1","@rollup/plugin-typescript":"^11.1.6","@testing-library/react":"^16.0.0","@types/jest":"^29.5.12","@types/react":"^19.0.0","@types/react-dom":"^19.0.0","eslint":"^9.8.0","eslint-config-prettier":"^9.1.0","eslint-plugin-jest":"^28.7.0","eslint-plugin-prettier":"^5.2.1","eslint-plugin-react":"^7.35.0","globals":"^15.9.0","jest":"^29.5.0","jest-environment-jsdom":"^29.5.0","prettier":"^3.3.3","react":"^19.2.0","react-dom":"^19.2.0","rollup":"^4.20.0","rollup-plugin-peer-deps-external":"^2.2.4","ts-jest":"^29.2.4","typescript":"^5.5.4","typescript-eslint":"^8.0.0"},"gitHead":"4e99eb32d50c227d15d19e9610d1143229145c0a","_id":"@0x0pharaoh/next-paystack@1.0.1","_nodeVersion":"25.0.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-XtTx6CSAErLzkWSbN4h1W5UvUe3kpmu60wSXFuzOVeFXRdhayOo5i2S6osE1290U9EXt19sb1byfZTlvIVgzSQ==","shasum":"47150dfd3f590c95fee0ed03d70f56d122dab31d","tarball":"https://registry.npmjs.org/@0x0pharaoh/next-paystack/-/next-paystack-1.0.1.tgz","fileCount":19,"unpackedSize":79780,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDPoxcWWrsnW+smtRH6IviJiwZ81PjuCUv4qg05GkGf9AIgC62jMqd0i99JikmJYuTloMzvfqp+ReLarh0d/pjUYd4="}]},"_npmUser":{"name":"moin.dev","email":"moins.dev@gmail.com"},"directories":{},"maintainers":[{"name":"moin.dev","email":"moins.dev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/next-paystack_1.0.1_1775748651781_0.6763063228222712"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-09T12:49:19.569Z","modified":"2026-04-09T15:30:52.075Z","1.0.0":"2026-04-09T12:49:19.868Z","1.0.1":"2026-04-09T15:30:51.922Z"},"bugs":{"url":"https://github.com/0x0pharaoh/next-paystack/issues"},"author":{"name":"Olusegun Ayeni","email":"nsegun5@gmail.com"},"license":"MIT","homepage":"https://github.com/0x0pharaoh/next-paystack?tab=readme-ov-file","keywords":["Javascript","github","NextJs","Open Source","payments","paystack","Gateway"],"repository":{"type":"git","url":"git+https://github.com/0x0pharaoh/next-paystack.git"},"description":"This is an nextJS library for implementing paystack payment gateway","maintainers":[{"name":"moin.dev","email":"moins.dev@gmail.com"}],"readme":"﻿# Next Paystack (React + Next.js)\n\nMinimal Paystack Inline payments for React apps, compatible with modern Next.js and TypeScript/JavaScript projects.\n\n## Requirements\n\n- `next@^16`\n- `react@^18 || ^19`\n- `react-dom@^18 || ^19`\n\nPaystack opens a checkout UI in the browser, so this package must be used from a **Client Component** in Next.js.\n\n## Install\n\n```sh\nnpm i @0x0pharaoh/next-paystack\n```\n\n## Minimal example (Next.js App Router)\n\n```tsx\n'use client';\n\nimport {PaystackButton} from '@0x0pharaoh/next-paystack';\n\nexport default function Page() {\n  return (\n    <PaystackButton\n      publicKey=\"pk_test_xxx\"\n      email=\"user@example.com\"\n      amount={20000}\n      text=\"Pay now\"\n      onSuccess={(tx) => console.log(tx?.reference)}\n      onClose={() => console.log('closed')}\n    />\n  );\n}\n```\n\n## Required props (per Paystack Inline)\n\n- `publicKey` (maps to InlineJS `key`)\n- `email`\n- `amount` (lowest currency unit, e.g. kobo)\n\n## Hook (minimal)\n\n```tsx\n'use client';\n\nimport {usePaystackPayment} from '@0x0pharaoh/next-paystack';\n\nexport default function Donate() {\n  const initializePayment = usePaystackPayment({\n    publicKey: 'pk_test_xxx',\n    email: 'user@example.com',\n    amount: 20000,\n  });\n\n  return <button onClick={() => initializePayment({})}>Pay</button>;\n}\n```\n\n## Types\n\n```ts\nimport type {PaystackProps, PaystackTransaction} from '@0x0pharaoh/next-paystack';\n```\n\n## Paystack docs\n\n- https://paystack.com/docs/payments/accept-payments/\n\n## Attribution / lineage\n\n- This package is derived from [iamraphson/react-paystack](https://github.com/iamraphson/react-paystack).\n\n## License\n\nMIT (see `LICENSE`).\n","readmeFilename":"README.md"}