{"_id":"@adamvr/feathers-stripe","_rev":"4-3f9bb8b6ff85bcf549743fb3183389d0","name":"@adamvr/feathers-stripe","description":"A Feathers service for Stripe","dist-tags":{"latest":"0.3.3"},"versions":{"0.3.1":{"name":"@adamvr/feathers-stripe","description":"A Feathers service for Stripe","version":"0.3.1","homepage":"https://github.com/feathersjs/feathers-stripe","main":"lib/","keywords":["feathers","feathers-plugin"],"license":"MIT","repository":{"type":"git","url":"git://github.com/feathersjs/feathers-stripe.git"},"author":{"name":"Feathers contributors","email":"hello@feathersjs.com","url":"https://feathersjs.com"},"contributors":[],"bugs":{"url":"https://github.com/feathersjs/feathers-stripe/issues"},"engines":{"node":">= 4"},"scripts":{"start":"node example/app","prepublish":"npm run compile","publish":"git push origin && git push origin --tags","release:patch":"npm version patch && npm publish","release:minor":"npm version minor && npm publish","release:major":"npm version major && npm publish","compile":"rimraf lib/ && babel -d lib/ src/","watch":"babel --watch -d lib/ src/","lint":"eslint-if-supported semistandard --fix","mocha":"mocha --opts mocha.opts","test":"npm run compile && npm run lint && npm run coverage","coverage":"istanbul cover node_modules/mocha/bin/_mocha -- --opts mocha.opts"},"semistandard":{"env":["mocha"],"ignore":["/lib"]},"directories":{"lib":"lib"},"dependencies":{"babel-polyfill":"^6.13.0","debug":"^3.0.0","feathers-errors":"^2.4.0","stripe":"^4.11.0"},"devDependencies":{"babel-cli":"^6.5.1","babel-core":"^6.5.2","babel-plugin-add-module-exports":"^0.2.1","babel-preset-es2015":"^6.5.0","body-parser":"^1.15.0","chai":"^4.0.0","eslint-if-supported":"^1.0.1","feathers":"^2.0.0","feathers-hooks":"^2.0.0","feathers-rest":"^1.2.4","feathers-socketio":"^2.0.0","istanbul":"^1.1.0-alpha.1","mocha":"^3.0.2","rimraf":"^2.5.4","semistandard":"^11.0.0"},"resolutions":{"debug":"2.6.3","ms":"0.7.2","object-assign":"4.1.1","qs":"6.4.0","glob":"7.1.1","source-map":"0.5.6","minimist":"1.2.0","user-home":"2.0.0","isarray":"1.0.0","nopt":"4.0.1","string-width":"2.0.0","is-fullwidth-code-point":"2.0.0","assert-plus":"1.0.0","supports-color":"3.1.2","jsesc":"1.3.0","type-detect":"1.0.0","component-emitter":"1.2.1","async":"2.3.0","wordwrap":"1.0.0","strip-bom":"3.0.0","estraverse":"4.2.0","acorn":"5.0.3"},"gitHead":"ef53c194090faef4995bf81baf40dbc91a3e340a","_id":"@adamvr/feathers-stripe@0.3.1","_shasum":"b4136bf3c2e2543c3aacc5a369531f0046d54fab","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"adamvr","email":"adamvrr+npm@gmail.com"},"dist":{"shasum":"b4136bf3c2e2543c3aacc5a369531f0046d54fab","tarball":"https://registry.npmjs.org/@adamvr/feathers-stripe/-/feathers-stripe-0.3.1.tgz","integrity":"sha512-yvIKkLMVDcVNxKPyRA1lluSQSElX5GRzVGszrVxgQZgqWUNG7lKRTOxY0jM6UYmZLteamnP6AYeSxKSj2F4/qA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDX0OshE1rPQjwp8CeM7NMQA3QuVcttsReADnnhqmzd7QIgHGVSlM72EZOhuN7imYLMMOZvYWG/mlcsibej0Ea20Sw="}]},"maintainers":[{"name":"adamvr","email":"adamvrr+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/feathers-stripe-0.3.1.tgz_1504532508770_0.6012602895498276"}},"0.3.2":{"name":"@adamvr/feathers-stripe","description":"A Feathers service for Stripe","version":"0.3.2","homepage":"https://github.com/feathersjs/feathers-stripe","main":"lib/","keywords":["feathers","feathers-plugin"],"license":"MIT","repository":{"type":"git","url":"git://github.com/feathersjs/feathers-stripe.git"},"author":{"name":"Feathers contributors","email":"hello@feathersjs.com","url":"https://feathersjs.com"},"contributors":[],"bugs":{"url":"https://github.com/feathersjs/feathers-stripe/issues"},"engines":{"node":">= 4"},"scripts":{"start":"node example/app","prepublish":"npm run compile","publish":"git push origin && git push origin --tags","release:patch":"npm version patch && npm publish","release:minor":"npm version minor && npm publish","release:major":"npm version major && npm publish","compile":"rimraf lib/ && babel -d lib/ src/","watch":"babel --watch -d lib/ src/","lint":"eslint-if-supported semistandard --fix","mocha":"mocha --opts mocha.opts","test":"npm run compile && npm run lint && npm run coverage","coverage":"istanbul cover node_modules/mocha/bin/_mocha -- --opts mocha.opts"},"semistandard":{"env":["mocha"],"ignore":["/lib"]},"directories":{"lib":"lib"},"dependencies":{"babel-polyfill":"^6.13.0","debug":"^3.0.0","feathers-errors":"^2.4.0","stripe":"^4.11.0"},"devDependencies":{"babel-cli":"^6.5.1","babel-core":"^6.5.2","babel-plugin-add-module-exports":"^0.2.1","babel-preset-es2015":"^6.5.0","body-parser":"^1.15.0","chai":"^4.0.0","eslint-if-supported":"^1.0.1","feathers":"^2.0.0","feathers-hooks":"^2.0.0","feathers-rest":"^1.2.4","feathers-socketio":"^2.0.0","istanbul":"^1.1.0-alpha.1","mocha":"^3.0.2","rimraf":"^2.5.4","semistandard":"^11.0.0"},"resolutions":{"debug":"2.6.3","ms":"0.7.2","object-assign":"4.1.1","qs":"6.4.0","glob":"7.1.1","source-map":"0.5.6","minimist":"1.2.0","user-home":"2.0.0","isarray":"1.0.0","nopt":"4.0.1","string-width":"2.0.0","is-fullwidth-code-point":"2.0.0","assert-plus":"1.0.0","supports-color":"3.1.2","jsesc":"1.3.0","type-detect":"1.0.0","component-emitter":"1.2.1","async":"2.3.0","wordwrap":"1.0.0","strip-bom":"3.0.0","estraverse":"4.2.0","acorn":"5.0.3"},"gitHead":"23bd4c4f0a675607744a3b9cbac564c63742982d","_id":"@adamvr/feathers-stripe@0.3.2","_shasum":"f6647f7123ffe6552be4abfe5b8ad1ca792fd3e2","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"adamvr","email":"adamvrr+npm@gmail.com"},"dist":{"shasum":"f6647f7123ffe6552be4abfe5b8ad1ca792fd3e2","tarball":"https://registry.npmjs.org/@adamvr/feathers-stripe/-/feathers-stripe-0.3.2.tgz","integrity":"sha512-fiViMUGUl7PtB3k5RVjVkxAe8rDZjmwcWGZLA6gj/X/VBcbIgb9407QWEQjM3hjQBgQODVNpD6Ze1WeISNp7Bg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMyI8Pa3vtpM6o3T8AkSIyEm+o9miPf8P547otNpA8AQIhAKkGzWkxDRNz3GRmil8o7YBdDTs1lkxG2/GGMwK7pukI"}]},"maintainers":[{"name":"adamvr","email":"adamvrr+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/feathers-stripe-0.3.2.tgz_1504778714670_0.9777012644335628"}},"0.3.3":{"name":"@adamvr/feathers-stripe","description":"A Feathers service for Stripe","version":"0.3.3","homepage":"https://github.com/feathersjs/feathers-stripe","main":"lib/","keywords":["feathers","feathers-plugin"],"license":"MIT","repository":{"type":"git","url":"git://github.com/feathersjs/feathers-stripe.git"},"author":{"name":"Feathers contributors","email":"hello@feathersjs.com","url":"https://feathersjs.com"},"contributors":[],"bugs":{"url":"https://github.com/feathersjs/feathers-stripe/issues"},"engines":{"node":">= 4"},"scripts":{"start":"node example/app","prepublish":"npm run compile","publish":"git push origin && git push origin --tags","release:patch":"npm version patch && npm publish","release:minor":"npm version minor && npm publish","release:major":"npm version major && npm publish","compile":"rimraf lib/ && babel -d lib/ src/","watch":"babel --watch -d lib/ src/","lint":"eslint-if-supported semistandard --fix","mocha":"mocha --opts mocha.opts","test":"npm run compile && npm run lint && npm run coverage","coverage":"istanbul cover node_modules/mocha/bin/_mocha -- --opts mocha.opts"},"semistandard":{"env":["mocha"],"ignore":["/lib"]},"directories":{"lib":"lib"},"dependencies":{"babel-polyfill":"^6.13.0","debug":"^3.0.0","feathers-errors":"^2.4.0","stripe":"^4.11.0"},"devDependencies":{"babel-cli":"^6.5.1","babel-core":"^6.5.2","babel-plugin-add-module-exports":"^0.2.1","babel-preset-es2015":"^6.5.0","body-parser":"^1.15.0","chai":"^4.0.0","eslint-if-supported":"^1.0.1","feathers":"^2.0.0","feathers-hooks":"^2.0.0","feathers-rest":"^1.2.4","feathers-socketio":"^2.0.0","istanbul":"^1.1.0-alpha.1","mocha":"^3.0.2","rimraf":"^2.5.4","semistandard":"^11.0.0"},"resolutions":{"debug":"2.6.3","ms":"0.7.2","object-assign":"4.1.1","qs":"6.4.0","glob":"7.1.1","source-map":"0.5.6","minimist":"1.2.0","user-home":"2.0.0","isarray":"1.0.0","nopt":"4.0.1","string-width":"2.0.0","is-fullwidth-code-point":"2.0.0","assert-plus":"1.0.0","supports-color":"3.1.2","jsesc":"1.3.0","type-detect":"1.0.0","component-emitter":"1.2.1","async":"2.3.0","wordwrap":"1.0.0","strip-bom":"3.0.0","estraverse":"4.2.0","acorn":"5.0.3"},"gitHead":"ac5519c377fac9bb81e23df1deb9b16c84b8024e","_id":"@adamvr/feathers-stripe@0.3.3","_shasum":"4b3daa800018ada7b4a607c93736ffb5e4f86121","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"adamvr","email":"adamvrr+npm@gmail.com"},"dist":{"shasum":"4b3daa800018ada7b4a607c93736ffb5e4f86121","tarball":"https://registry.npmjs.org/@adamvr/feathers-stripe/-/feathers-stripe-0.3.3.tgz","integrity":"sha512-DvMBga1ixfV7Px72vB/laSTntZtjrYr0Zvky0zcguc2RfENFnuTF6FFEhz2GH7ExHS2k9tyh6T5ys3s+WqS36w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICqbY2obEmrfngTXeRDVVEvC0cqrsI3f0xVurzGu1wgtAiBRvaqg39VACqLiBxYFC4JV2d8m1YZ0fytb/tv/dbAFdQ=="}]},"maintainers":[{"name":"adamvr","email":"adamvrr+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/feathers-stripe-0.3.3.tgz_1506524069201_0.012316926615312696"}}},"readme":"# feathers-stripe\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/feathersjs/feathers-stripe.svg)](https://greenkeeper.io/)\n\n[![Build Status](https://travis-ci.org/feathersjs/feathers-stripe.png?branch=master)](https://travis-ci.org/feathersjs/feathers-stripe)\n[![Code Climate](https://codeclimate.com/github/feathersjs/feathers-stripe.png)](https://codeclimate.com/github/feathersjs/feathers-stripe)\n[![Test Coverage](https://codeclimate.com/github/feathersjs/feathers-stripe/badges/coverage.svg)](https://codeclimate.com/github/feathersjs/feathers-stripe/coverage)\n[![Dependency Status](https://img.shields.io/david/feathersjs/feathers-stripe.svg?style=flat-square)](https://david-dm.org/feathersjs/feathers-stripe)\n[![Download Status](https://img.shields.io/npm/dm/feathers-stripe.svg?style=flat-square)](https://www.npmjs.com/package/feathers-stripe)\n[![Slack Status](http://slack.feathersjs.com/badge.svg)](http://slack.feathersjs.com)\n\n> A Feathers service for Stripe\n\n**This is still a work in progress and is not ready for production.** Pull requests welcome! :smile:\n\n## Installation\n\n```\nnpm install feathers-stripe --save\n```\n\n## Documentation\n\nPlease refer to the [Stripe API Docs](https://stripe.com/docs/api/node) and the [stripe-node docs](https://github.com/stripe/stripe-node) for options that can be passed. Feathers service methods map to the following Stripe methods:\n\n- Feathers `find` -> Stripe `list`\n- Feathers `get` -> Stripe `retrieve`\n- Feathers `create` -> Stripe `create`\n- Feathers `patch` -> Stripe `update` (in most cases). Some special cases in include paying an invoice or an order when you pass `{pay: true}` as part of `hook.data`.\n- Feathers `update` -> Stripe `update`\n- Feathers `remove` -> Stripe `del` (except in the case of transfers where we create a reversal)\n\nIf a method is not supported by Stripe for a given resource it is not support here as well.\n\n### Available Services\n\nThe following services are supported and map to the appropriate Stripe resource:\n\n- `account`\n- `bankAccount`\n- `balance`\n- `card`\n- `charge`\n- `coupon`\n- `customer`\n- `customerSubscription`\n- `dispute`\n- `event`\n- `invoiceItem`\n- `invoice`\n- `order`\n- `plan`\n- `product`\n- `recipient`\n- `refund`\n- `sku`\n- `subscription`\n- `token`\n- `transaction`\n- `transfer`\n- `transferReversal`\n\nThey are all referenced by `stripe.<resource>` and can be used like so:\n\n```js\nvar stripe = require('feathers-stripe');\napp.use('/stripe/charges', stripe.charge({ secretKey: 'your secret stripe key' }));\n```\n\n#### Webhooks\n\nComing Soon!\n\n#### Connect\n\nComing soon!\n\n### Currently Unsupported Resources\n\nThe following are not fully supported. If you wish to add support pull requests are very welcome.\n\n- `applePayDomains`\n- charge meta data\n- customer metadata\n- recipient metadata\n- transfer metadata\n- bank account verification\n- `threeDSecure`\n- `bitcoinReceivers`\n\nPagination is also not currently supported. You can `limit` results for finds but you need to handle pagination yourself.\n\n### Security\n\n**This is pretty important!** Since this connects to your Stripe account you want to make sure that you don't expose these endpoints via your app unless the user has the appropriate permissions. You can prevent any external access by doing this:\n\n```js\nvar hooks = require('feathers-hooks');\n\napp.service('/stripe/charges').before({\n  all: [hooks.disable('external')]\n});\n```\n\nTo learn what that actually did you can read [about some of the built-in Feathers hooks](https://docs.feathersjs.com/hooks/bundled.html#disable) and [about securing your Feathers app](https://docs.feathersjs.com/SECURITY.html).\n\n## Complete Example\n\nHere's an example of a Feathers server that uses `feathers-authentication` for local auth.  It includes a `users` service that uses `feathers-mongoose`.  *Note that it does NOT implement any authorization.*\n\n```js\nvar feathers = require('feathers');\nvar rest = require('feathers-rest');\nvar socketio = require('feathers-socketio');\nvar hooks = require('feathers-hooks');\nvar bodyParser = require('body-parser');\nvar errorHandler = require('feathers-errors/handler');\nvar stripe = require('feather-stripe');\n\n// Initialize the application\nvar app = feathers()\n  .configure(rest())\n  .configure(socketio())\n  .configure(hooks())\n  // Needed for parsing bodies (login)\n  .use(bodyParser.json())\n  .use(bodyParser.urlencoded({ extended: true }))\n  // A simple Message service that we can used for testing\n  .use('/stripe/charges', stripe.charge({ secretKey: 'your secret stripe key' }))\n  .use('/', feathers.static(__dirname + '/public'))\n  .use(errorHandler({ html: false }));\n\n\nfunction validateCharge() {\n  return function(hook) {\n    console.log('Validating charge code goes here');\n  };\n}\n\n\nvar chargeService = app.service('stripe/charges');\n\nchargeService.before({\n  create: [validateCharge()]\n});\n\nvar Charge = {\n  amount: 400,\n  currency: \"cad\",\n  source: \"tok_87rau6axWXeqLq\", // obtained with Stripe.js\n  description: \"Charge for test@example.com\"\n};\n\nchargeService.create(Charge).then(result => {\n  console.log('Charge created', result);\n}).catch(error => {\n  console.log('Error creating charge', error);\n});\n\napp.listen(3030);\n\nconsole.log('Feathers authentication app started on 127.0.0.1:3030');\n```\n\n\n## Changelog\n\n__0.3.0__\n\n- Updating cards service to use the appropriate methods\n- Updating stripe-node dependency\n- Adding the majority of the services\n- Adding support for `$limit` for find queries\n- Updating documentation and adding some more tests\n\n__0.2.0__\n\n- Adding some more resources\n\n__0.1.0__\n\n- Initial release\n\n## License\n\nCopyright (c) 2015\n\nLicensed under the [MIT license](LICENSE).\n","maintainers":[{"name":"adamvr","email":"adamvrr+npm@gmail.com"}],"time":{"modified":"2022-06-12T14:17:31.437Z","created":"2017-09-04T13:41:49.751Z","0.3.1":"2017-09-04T13:41:49.751Z","0.3.2":"2017-09-07T10:05:15.643Z","0.3.3":"2017-09-27T14:54:30.867Z"},"homepage":"https://github.com/feathersjs/feathers-stripe","keywords":["feathers","feathers-plugin"],"repository":{"type":"git","url":"git://github.com/feathersjs/feathers-stripe.git"},"contributors":[],"author":{"name":"Feathers contributors","email":"hello@feathersjs.com","url":"https://feathersjs.com"},"bugs":{"url":"https://github.com/feathersjs/feathers-stripe/issues"},"license":"MIT","readmeFilename":"README.md"}