{"_id":"@busha/busha-pay","_rev":"6-005655795cce10e4da2539f637e0773a","name":"@busha/busha-pay","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@busha/busha-pay","version":"1.0.0","description":"# Introduction","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/bushaHQ/busha-pay.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/bushaHQ/busha-pay/issues"},"homepage":"https://github.com/bushaHQ/busha-pay#readme","devDependencies":{"chai":"^4.2.0","mocha":"^6.2.0"},"directories":{"test":"test"},"dependencies":{},"gitHead":"fdad59946ac062c4ea744f51e81fda14fd3d6747","_id":"@busha/busha-pay@1.0.0","_npmVersion":"6.1.0","_nodeVersion":"10.6.0","_npmUser":{"name":"kay_busha","email":"kay@busha.co"},"dist":{"integrity":"sha512-vsgBHNsyZlBVu4c3lvpbR/uxwAqA2fcE8vPvtsRnYKaMafzUw9aNjNsEpt3NCSVyaNWZFZCT5mvVO2HzmdDRlQ==","shasum":"04f33519021cced6c6388e22a617de377b380bd2","tarball":"https://registry.npmjs.org/@busha/busha-pay/-/busha-pay-1.0.0.tgz","fileCount":8,"unpackedSize":6979,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdODucCRA9TVsSAnZWagAA2RsP/1JFbiXgmDJhmdkOlelt\nl5NL70c8JCo2G+6M9kUQE75O1ijCjrQiMHb0t8fs04AEAxz4AmMvaDirnu0n\nyQQfDfwvQOob6dw7m8jaGSZRr26/7x6qQeJGqUdcNl86T1wGt8JyU4nzZ/U2\nrGRq4MAgHIhkf9pwItX0q8sOU/0UNuG1IDguobrgV+4uoCeRVdCbb0LLLglh\ngR9ux9YQ/44vkpSfor2zjqulMTK6S+VNpwF3VSKeSUT4AlkpzOOIZKhE1tix\nGz04XKvEfSSfGPZjJMDFmWuuOtvohH4XL2pvOc3Etu9WNEnJA4d5jnTRaBI2\n2l7KRIBHlZh5PTODzrZCem5WHBsXdjkGEV43qtEbjvKwQYCmFXu2KB60aNX7\nBmQ/yr6pmIBy/DrR6Iz8LSs/600gJ2EFBkVs6iHROV26TFvA/FQLIp96E5UW\nOgXiZmVRXjPXbGpAOJFqm+VzC6QYZTL9+22IAh4IV9EEAQnsP6Iuoxl9AgJe\nphwvtW7thi9erHjTxmj/fAfCrXmnNt2YhUqcrO/2rk+J01PtpAUsXajNdmSm\n7pJ0NcNROqYy0tCRBlPFm9mv5Bl8k5MArNxnVvkNfJAKYlOJ3tiaPfWtNMXC\nmUbD9HQRdeym6LGW2jtsXmmYM8FcJfZ1DVq86BAKW9mFbiodyZERybMMhxqq\nAo2M\r\n=O03h\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGiuk9HV3ejDti3ZyiQO/sD+pAUArdS9j0C/amRz0KzgIhAN6JdpvtCuu+EKgDM952udGhYzM7cJHEKHP1AyUb+RVb"}]},"maintainers":[{"name":"kay_busha","email":"kay@busha.co"},{"name":"mychell","email":"michael@busha.co"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/busha-pay_1.0.0_1563966363515_0.7734933807696383"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.0.1":{"name":"@busha/busha-pay","version":"1.0.1","description":"Busha Pay allows businesses collect cryptocurrencies such as Bitcoin, Ethereum etc. as payment from customers around the world.","main":"dist/busha-pay.js","source":"src/index.js","scripts":{"test":"mocha","prebuild":"rimraf dist","build":"microbundle src/*.js -o dist/  --format cjs --target node --compress true"},"repository":{"type":"git","url":"git+https://github.com/bushaHQ/busha-pay.git"},"keywords":["fintech","crypto","busha","payment","bitcoin","ethereum"],"author":{"name":"BuhsaHQ"},"license":"ISC","bugs":{"url":"https://github.com/bushaHQ/busha-pay/issues"},"homepage":"https://github.com/bushaHQ/busha-pay#readme","devDependencies":{"chai":"^4.2.0","dotenv":"^8.2.0","microbundle":"^0.11.0","mocha":"^6.2.0","rimraf":"^3.0.2"},"directories":{"test":"test"},"dependencies":{},"gitHead":"d33c76cfc855e46daf7cd759fce8358b85b68a8f","_id":"@busha/busha-pay@1.0.1","_nodeVersion":"13.2.0","_npmVersion":"6.13.1","dist":{"integrity":"sha512-czyv2zR6QTwwDoKKxyK2YmxB7n5SqEfU82P1inD0hUrw8Ln5d3yKZiSCumUF2RiAsmLi77s9Oa/QS6dFttrRZg==","shasum":"9e3a89449d34868cbc129ceab20e7755839f1329","tarball":"https://registry.npmjs.org/@busha/busha-pay/-/busha-pay-1.0.1.tgz","fileCount":16,"unpackedSize":12778,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecoLPCRA9TVsSAnZWagAAAQYQAJzs2kds4jlPzY6nmX29\nQ0ub9b/+QmSzFY5FNgXeIRyzXto0lBbHEwAoTfOwIBea5bwO8zThTgijHk8J\ntVW+rPAxn/wdoJny6ljFRjNRandZ8duvfWwRmkQM3ufpT1Uxe+L79TBr6o2q\nBUFwPtvlEX3m/jfXEcVqEn/Adcg3fZzJalF0m7PRw/igXXrCrDkC37wGvfmb\n+Gp2SFXuQjuT/zA2PnHegj0S/mxE6V9NeWZqcgEPimx2f/2aL9pLbQ/RYNqn\n4wwnXy6qq506zerQnYqb7i02W6IsEXaO54qqb9BIAm3/r9hsNBYo5YiuNgHt\nlz6JkkHVpKBvdubVLZbcryXi5TzLG7KXFI9iaSS/r7TB24kuTsT2I7Qz+npJ\nbYrYN9xanKGOIjeJ6gAn9jkE9r3NnXnOGFysWiZN37pCZv3V7Vh0X1SWgumY\nCdLb5Ov6oaEJwMSRE0nk9hTMz9fa1uQ8OXrKu+SIW1eisiplI3mVmlrDyrlt\nWLloI93oT6J+W+74Xs1nLB+1JHnZnRt36hTFCIPtnxmM37R53V7b692G5xq1\n7+a6GfcrLbf9R8aQRscs3NqWI3X7KReVKMkT8KmiiWCtthvxZx2Rc9Nqx8Fd\nujm8T+qM1rYmdi+JwvZd0Dj+40nc0uEbeHHh0ahx638xu/GF9xX4ivMDkh4R\nxoji\r\n=zu0p\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDq+oO1XRx8cvHhfCNEGp7Cti46/+jeGUBqU3wppgoqCAiEA4hLlc0Lm9htGT964/k6WnLMMddOnzMzqiF8Hrhzt1ek="}]},"maintainers":[{"email":"johnayeni10.aj@gmail.com","name":"johnayeni"},{"email":"kay@busha.co","name":"kay_busha"},{"email":"michael@busha.co","name":"mychell"}],"_npmUser":{"name":"johnayeni","email":"johnayeni10.aj@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/busha-pay_1.0.1_1584562894884_0.0625611217628792"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2019-07-24T11:06:03.279Z","1.0.0":"2019-07-24T11:06:03.625Z","modified":"2023-03-06T20:29:10.754Z","1.0.1":"2020-03-18T20:21:35.058Z"},"maintainers":[{"email":"abolajibisiriyu@gmail.com","name":"abolajibisiriyu"},{"email":"kay@busha.co","name":"kay_busha"},{"email":"michael@busha.co","name":"mychell"}],"description":"Busha Pay allows businesses collect cryptocurrencies such as Bitcoin, Ethereum etc. as payment from customers around the world.","homepage":"https://github.com/bushaHQ/busha-pay#readme","keywords":["fintech","crypto","busha","payment","bitcoin","ethereum"],"repository":{"type":"git","url":"git+https://github.com/bushaHQ/busha-pay.git"},"bugs":{"url":"https://github.com/bushaHQ/busha-pay/issues"},"license":"ISC","readme":"# @bushaHQ/busha-pay\n\n## Introduction\n\n`@bushaHQ/busha-pay` is an API client for `busha pay` service. Check the docs here [https://docs.api.pay.busha.co](https://docs.api.pay.busha.co).\nBusha Pay allows businesses collect cryptocurrencies such as Bitcoin, Ethereum etc. as payment from customers around the world.\n\n[![npm version](https://badge.fury.io/js/%40busha%2Fbusha-pay.svg)](https://badge.fury.io/js/%40busha%2Fbusha-pay)\n\n## Usage\n\n```js\nconst bushapay = require(\"@bushaHQ/busha-pay\");\n\nconst bushapayClient = bushapay.newClient(\"<YOUR_API_KEY>\");\n\n// get list of charge transactions\nconst page = 1;\nconst limit = 10;\nbushapayClient.charge\n  .list(page, limit)\n  .then(console.log)\n  .catch(e => console.error(e.message));\n\n// get details for a particular charge transaction\nbushapayClient.charge\n  .get(\"<CHARGE_ID>\")\n  .then(console.log)\n  .catch(e => console.error(e.message));\n\n// create a charge transaction\nbushapayClient.charge\n  .create({\n    local_price: {\n      amount: \"2000\",\n      currency: \"NGN\"\n    },\n    redirect_url: \"https://example.com\",\n    cancel_url: \"https://example.com\",\n    metadata: {\n      customer_id: \"<UNIQUE_CUSTOMER_ID>\",\n      customer_name: \"John Doe\"\n    }\n  })\n  .then(console.log)\n  .catch(e => console.error(e.message));\n\n// cancel a charge transaction\nbushapayClient.charge\n  .cancel(\"<CHARGE_ID>\")\n  .then(console.log)\n  .catch(e => console.error(e.message));\n```\n","readmeFilename":"readme.md","author":{"name":"BuhsaHQ"}}