{"_id":"paystack","_rev":"10-1d34724150e90ccd8e1a53bdd81f4370","name":"paystack","description":"Paystack API wrapper","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"paystack","version":"1.0.0","description":"Paystack API wrapper","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["payment","API","naira","paystack"],"author":{"name":"Opeyemi Obembe","email":"kehers@gmail.com","url":"http://obem.be/opeyemi"},"license":"MIT","dependencies":{"request":"^2.67.0"},"gitHead":"5157fc8cafa4aa693dedaf28a684fd7a87a1b7a7","_id":"paystack@1.0.0","_shasum":"0b73bef444ff38a293c47e83dac13f72b19162aa","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"kehers","email":"kehers@gmail.com"},"maintainers":[{"name":"kehers","email":"kehers@gmail.com"}],"dist":{"shasum":"0b73bef444ff38a293c47e83dac13f72b19162aa","tarball":"https://registry.npmjs.org/paystack/-/paystack-1.0.0.tgz","integrity":"sha512-DlidKCxg6dlISNZHdyU4DaHesu7NSJrNJOI42XSOrgGcj5B0SHxDCdTrJInA0P+mEBomm9HWG997+64TM5NMDQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBZ9B2iAbroGvNbPw60tMrtQwLx1WrAUt8Y2lqYgZ976AiBWPdfMqVtBfxincfuKfBKf/Oknb0xKPvTGkoWgXqbrSQ=="}]}},"1.0.1":{"name":"paystack","version":"1.0.1","description":"Paystack API wrapper","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["payment","API","naira","paystack"],"author":{"name":"Opeyemi Obembe","email":"kehers@gmail.com","url":"http://obem.be/opeyemi"},"license":"MIT","dependencies":{"request":"^2.67.0"},"devDependencies":{},"repository":{"type":"git","url":"https://github.com/kehers/paystack.git"},"bugs":{"url":"https://github.com/kehers/paystack/issues"},"homepage":"https://github.com/kehers/paystack","gitHead":"5b66584ea6ef37f692f5a714b323509ae47e8426","_id":"paystack@1.0.1","_shasum":"fa095187f62fe1c21d14079c01d9dcec46123251","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"kehers","email":"kehers@gmail.com"},"maintainers":[{"name":"kehers","email":"kehers@gmail.com"}],"dist":{"shasum":"fa095187f62fe1c21d14079c01d9dcec46123251","tarball":"https://registry.npmjs.org/paystack/-/paystack-1.0.1.tgz","integrity":"sha512-o6C2zqLal4/a26QfxxGmL161WbaBBwFO1/OgeYfz/+WIfa2GHDR6otkB7auF1phFIcbID/yQImK0eczmE1Gixg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTZFMaPaHM0oG7GyUZ4MP9ZhgAzyx7ojeghGPhlvKJWAIgf8Du87aRAGeuIIA0ijXuXocu+ZIjBhhCbQV8QdOhAnY="}]}},"1.1.0":{"name":"paystack","version":"1.1.0","description":"Paystack API wrapper","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["payment","API","naira","paystack"],"author":{"name":"Opeyemi Obembe","email":"kehers@gmail.com","url":"http://obem.be/opeyemi"},"license":"MIT","dependencies":{"request":"^2.67.0"},"devDependencies":{},"repository":{"type":"git","url":"https://github.com/kehers/paystack.git"},"bugs":{"url":"https://github.com/kehers/paystack/issues"},"homepage":"https://github.com/kehers/paystack","gitHead":"301715a6a32257a165c63b2821bf6dc41de362ef","_id":"paystack@1.1.0","_shasum":"e05c754b94200ff7adf7b0789056b54dabcab310","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"kehers","email":"kehers@gmail.com"},"maintainers":[{"name":"kehers","email":"kehers@gmail.com"}],"dist":{"shasum":"e05c754b94200ff7adf7b0789056b54dabcab310","tarball":"https://registry.npmjs.org/paystack/-/paystack-1.1.0.tgz","integrity":"sha512-KRP6bAd7nKQtRtokerIIRTWR/44juhTHTP5rSOHbZ3RYysTMcpzj2Esmw5xdDt4l1JhYLB6I+TZON0lMjBDZ4g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD28dMl/B1jf7UbYn88hpIX8RrmXEbNMCobcr3Osf+uRwIhAPK7DkYYuzw+m3+wRhnxHp0BwfMik0gouxQ2iFv5zV09"}]},"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/paystack-1.1.0.tgz_1455639630676_0.41744424612261355"}},"1.3.0":{"name":"paystack","version":"1.3.0","description":"Paystack API wrapper","main":"index.js","scripts":{"test":"env KEY={TEST_SECRET_KEY} ./node_modules/.bin/mocha ./test/*.js --reporter spec --timeout 5000"},"keywords":["payment","API","naira","paystack"],"author":{"name":"Opeyemi Obembe","email":"kehers@gmail.com","url":"http://obem.be/opeyemi"},"license":"MIT","dependencies":{"chai":"^3.5.0","mocha":"^3.1.0","request":"^2.67.0"},"devDependencies":{},"repository":{"type":"git","url":"https://github.com/kehers/paystack.git"},"bugs":{"url":"https://github.com/kehers/paystack/issues"},"homepage":"https://github.com/kehers/paystack","gitHead":"f3d5008adc1e6f95fff93b0aac40d382955061d4","_id":"paystack@1.3.0","_shasum":"d0f1c06630dec8fd94af9a0e8e28beae02e4c597","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"kehers","email":"kehers@gmail.com"},"maintainers":[{"name":"kehers","email":"kehers@gmail.com"}],"dist":{"shasum":"d0f1c06630dec8fd94af9a0e8e28beae02e4c597","tarball":"https://registry.npmjs.org/paystack/-/paystack-1.3.0.tgz","integrity":"sha512-sWJSH7bASAzK016EhC5K47Ep/nlw9PfVBYg9WDCFQfj+heLzYbg2tvX1rn7fO04sK/Um5IkBv63eLKEU5FgmYg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEXHJp8pEttduvVhU+0l0Qc1i+GUKr07RGB5HQ8Sv7wHAiEA1qgb8nuned3OGK3sQhhddhin9wGn00ZvhulLJIIDeuw="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/paystack-1.3.0.tgz_1476040566861_0.6020705278497189"}},"1.4.0":{"name":"paystack","version":"1.4.0","description":"Paystack API wrapper","main":"index.js","scripts":{"test":"env KEY={TEST_SECRET_KEY} ./node_modules/.bin/mocha ./test/*.js --reporter spec --timeout 5000"},"keywords":["payment","API","naira","paystack"],"author":{"name":"Opeyemi Obembe","email":"kehers@gmail.com","url":"http://obem.be/opeyemi"},"license":"MIT","dependencies":{"request":"^2.67.0"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.1.0"},"repository":{"type":"git","url":"https://github.com/kehers/paystack.git"},"bugs":{"url":"https://github.com/kehers/paystack/issues"},"homepage":"https://github.com/kehers/paystack","gitHead":"ba49186cc2897f0f30e865f7ed534cfc51958144","_id":"paystack@1.4.0","_shasum":"6ffe6b0d087959874ec5e8a426beb59d26b3c313","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"kehers","email":"kehers@gmail.com"},"maintainers":[{"name":"kehers","email":"kehers@gmail.com"}],"dist":{"shasum":"6ffe6b0d087959874ec5e8a426beb59d26b3c313","tarball":"https://registry.npmjs.org/paystack/-/paystack-1.4.0.tgz","integrity":"sha512-hPo7Fyt79AbvQgAvrFwO2bpcs4yKAbKdrAM5nb8CC21MHWOagFuiUdw3BmId/8bY0tivfZtNt2LpCwELREKFAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOhqRoEwbbz1gLIcGtS5m5BeiN4N+Ysw1l4dw5oAfijwIgEFQAhWuzXaIsvBSXy0+78PZZYJPwn7AwmsMTDoMd8yo="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/paystack-1.4.0.tgz_1476852714160_0.21209148620255291"}},"1.4.1":{"name":"paystack","version":"1.4.1","description":"Paystack API wrapper","main":"index.js","scripts":{"test":"mocha ./test/*.js --reporter spec --timeout 5000"},"keywords":["payment","API","naira","paystack"],"author":{"name":"Opeyemi Obembe","email":"kehers@gmail.com","url":"http://obem.be/opeyemi"},"license":"MIT","dependencies":{"request":"^2.67.0"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.1.0"},"repository":{"type":"git","url":"https://github.com/kehers/paystack.git"},"bugs":{"url":"https://github.com/kehers/paystack/issues"},"homepage":"https://github.com/kehers/paystack","gitHead":"750050f57e5c578e4b7b27c289e683bb2a2c6303","_id":"paystack@1.4.1","_shasum":"96e878d5e00467ee81e93c99f4978b6cfad052d2","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"kehers","email":"kehers@gmail.com"},"maintainers":[{"name":"kehers","email":"kehers@gmail.com"}],"dist":{"shasum":"96e878d5e00467ee81e93c99f4978b6cfad052d2","tarball":"https://registry.npmjs.org/paystack/-/paystack-1.4.1.tgz","integrity":"sha512-LOtBXaHlDDN0DtUylelydlNvQl5AxZTf36n+OHEs0293n2auC+9tSqUmPflZm5+dOUpg9+AQft4RFtUl9IaVNQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCi05KreEtoJadun3ays0kblcvST+sj/N2c5+MHVmGKTwIhAKsTX3y7intfHS2XaWi1ikDkFc7jwViKtZW1Jtxgr7w8"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/paystack-1.4.1.tgz_1481697071316_0.3200738353189081"}},"2.0.1":{"name":"paystack","version":"2.0.1","description":"Paystack API wrapper","main":"index.js","scripts":{"test":"mocha ./test/*.js --reporter spec --timeout 8000"},"keywords":["payment","API","naira","paystack"],"author":{"name":"Opeyemi Obembe","email":"kehers@gmail.com","url":"http://obem.be/opeyemi"},"license":"MIT","dependencies":{"promise":"^7.1.1","request":"^2.79.0"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.2.0"},"repository":{"type":"git","url":"git+https://github.com/kehers/paystack.git"},"bugs":{"url":"https://github.com/kehers/paystack/issues"},"homepage":"https://github.com/kehers/paystack","gitHead":"e74305a85d3c11c767e24abd96ba96f061f4cc2a","_id":"paystack@2.0.1","_npmVersion":"5.3.0","_nodeVersion":"8.3.0","_npmUser":{"name":"kehers","email":"kehers@gmail.com"},"maintainers":[{"name":"kehers","email":"kehers@gmail.com"}],"dist":{"integrity":"sha512-reVONV7ZUMln/iWeM60n0BbogF3/zFWmUrqbKYVNzEAv+p9TcWDCHfNZ2mBGXzIXhyTsNXWwf4wNcXe28btAHw==","shasum":"14a854be4a9e29ecaeaea39f6ee34bedb18c3879","tarball":"https://registry.npmjs.org/paystack/-/paystack-2.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGX7CbPtTZYWDDjb+IyJzL8zaZACvsUm4pNkLcJimK9AIgBeaOYe6dedZCvrjYTZECr+G5232bBqb3gsS2ftYNZo8="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/paystack-2.0.1.tgz_1506187023896_0.4100014818832278"}}},"readme":"## Paystack ![Build status](https://travis-ci.org/theslyone/node-paystack.svg?branch=master)\n\nNodejs API wrapper for [Paystack](https://paystack.co/).\n\n### Installation\n\n```\nnpm install paystack\n```\n\n### Usage\n\n```js\n// Require the library\nvar paystack = require('paystack')('secret_key');\n```\n\n#### Making calls to the resources\nThe resource methods accepts are promisified, but can receive optional callback as the last argument.\n\n```js\n// First Option\n// paystack.{resource}.{method}\npaystack.customer.list(function(error, body) {\n  console.log(error);\n  console.log(body);\n});\n```\n```js\n// Second Option\n// paystack.{resource}\npaystack.customer.list()\n\t.then(function(body) {\n  \t\tconsole.log(body);\n\t})\n\t.catch(function(error) {\n\t\tconsole.log(error);\n\t});\n```\n\n\n\nFor resource methods that use POST or PUT, the JSON body can be passed as the first argument.\n\n```js\npaystack.plan.create({\n  name: 'API demo',\n  amount: 10000,\n  interval: 'monthly'\n})\n  .then(function(error, body) {\n  \t console.log(error);\n    console.log(body);\n\t});\n```\n\nFor GET, you can pass the required ID as string and optional parameters as an optional object argument.\n\n```js\npaystack.plan.get(90)\n\t.then(function(error, body) {\n\t\tconsole.log(error);\n\t\tconsole.log(body);\n\t});\n```\n\n```js\npaystack.transactions.list({perPage: 20})\n\t.then(function(error, body) {\n\t\tconsole.log(error);\n\t\tconsole.log(body);\n\t});\n```\n\n### Resources\n\n- customer\n  - create\n  - get\n  - list\n  - update\n- transaction\n  - initialize\n  - charge\n  - get\n  - list\n  - totals\n  - verify\n- plan\n  - create\n  - get\n  - list\n  - update\n- page\n  - create\n  - get\n  - list\n  - update\n- subscription\n  - create\n  - disable\n  - enable\n  - get\n  - list\n- subaccount\n  - create\n  - get\n  - list\n  - listBanks\n  - update\n- Miscellanous\n  - list_banks\n  - resolve_bin\n  \n\n\n### Contributing\n- To ensure consistent code style, please follow the [editorconfig rules](http://obem.be/2015/06/01/a-quick-note-on-editorconfig.html) in .editorconfig\n\n### Tests\n\nTo run tests, add your Paystack test secret key to `package.json`. (The test line should look something like this: `env KEY=sk_test_1a68ac96a0171fb72111a24295d8d31d41c28eed ./node_modules/.bin/mocha...`). Now run:\n\n```\nnpm test\n```\n\nIf you are contributing to the repo, kindly update the necessary test file in `/test` or add a new one and ensure all tests are passed before sending a PR.\n\n### Todo\n\n- Proper resource examples\n- ES6 support\n","maintainers":[{"name":"kehers","email":"kehers@gmail.com"}],"time":{"modified":"2022-06-23T15:46:14.668Z","created":"2016-01-29T11:25:58.427Z","1.0.0":"2016-01-29T11:25:58.427Z","1.0.1":"2016-01-29T11:44:22.912Z","1.1.0":"2016-02-16T16:20:34.588Z","1.3.0":"2016-10-09T19:16:08.504Z","1.4.0":"2016-10-19T04:51:54.771Z","1.4.1":"2016-12-14T06:31:13.070Z","2.0.1":"2017-09-23T17:17:04.781Z"},"keywords":["payment","API","naira","paystack"],"author":{"name":"Opeyemi Obembe","email":"kehers@gmail.com","url":"http://obem.be/opeyemi"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/kehers/paystack","repository":{"type":"git","url":"git+https://github.com/kehers/paystack.git"},"bugs":{"url":"https://github.com/kehers/paystack/issues"}}