{"_id":"@boundless-inc/ember-cli-stripe","_rev":"2-bd25ea14d1a3f6d086d79d08eb62d6c2","name":"@boundless-inc/ember-cli-stripe","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.4":{"name":"@boundless-inc/ember-cli-stripe","version":"1.0.4","description":"Stripe checkout for Ember","keywords":["ember-addon","stripe","stripe.js","stripejs","sweettooth"],"license":"MIT","author":{"name":"Bill Curtis","email":"wcurtis@sweettoothhq.com"},"directories":{"test":"tests"},"repository":{"type":"git","url":"git+https://github.com/boundless-inc/ember-cli-stripe.git"},"scripts":{"build":"ember build","start":"ember server","test":"ember try:each"},"dependencies":{"ember-cli-babel":"^6.0.0","ember-cli-htmlbars":"^1.1.1","ember-invoke-action":"^1.5.1"},"devDependencies":{"broccoli-asset-rev":"^2.4.5","ember-ajax":"^3.0.0","ember-cli":"2.13.2","ember-cli-dependency-checker":"^1.3.0","ember-cli-eslint":"^3.0.0","ember-cli-htmlbars-inline-precompile":"^0.4.0","ember-cli-inject-live-reload":"^1.4.1","ember-cli-qunit":"^4.0.0","ember-cli-shims":"^1.1.0","ember-cli-sri":"^2.1.0","ember-cli-uglify":"^1.2.0","ember-code-snippet":"1.8.1","ember-disable-prototype-extensions":"^1.1.0","ember-export-application-global":"^2.0.0","ember-load-initializers":"^1.0.0","ember-resolver":"^4.0.0","ember-sinon-qunit":"1.4.1","ember-source":"~2.13.0","loader.js":"^4.2.3"},"engines":{"node":">= 4"},"ember-addon":{"configPath":"tests/dummy/config"},"bugs":{"url":"https://github.com/boundless-inc/ember-cli-stripe/issues"},"homepage":"https://github.com/boundless-inc/ember-cli-stripe#readme","main":"index.js","gitHead":"2b4ec8a2fc21569685bd168396459ce5971868e8","_id":"@boundless-inc/ember-cli-stripe@1.0.4","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"scudco","email":"adamandersonis@gmail.com"},"dist":{"integrity":"sha512-O8r55/+xp3HVCFeq1CmquFdbXZmXoqt6xF3c7WaTGvjfvZZyypH8p2G7rs8R4Vt55wige6NKnVxuGt9LWMdRow==","shasum":"c5b6615567c44c352635767b464eea06b2878838","tarball":"https://registry.npmjs.org/@boundless-inc/ember-cli-stripe/-/ember-cli-stripe-1.0.4.tgz","fileCount":13,"unpackedSize":233676,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbM7BRCRA9TVsSAnZWagAAH68P/22p1YxZoMa9QeoKPKMl\nNBfh0C828ScP3i7bKlsWPosmbIc9AMARY00J2k2n5hjTnZU0BgXZRFqnQwVg\nVA/eSGG8az6Nxi7qK8GvRtMJNcS3iI0L+C/Bo90B6ATIaIXzMRSkQFX6cjV/\nQd4H/puaoFPg84smlMZRNZhbqvqmDNZPXDqpnruRP2S7aZFqsEGlrfq/Hyom\n7y2Jzg5AyEt50nAe/xYY7QHYhvBRmJ/ec7q4RQaodP+GodjL6oYmHdw2Q1tX\nQOQFhHhB+kJgMQSg6TWOUCn1AEN2gESWLJ/n348jjPs4cDqscEiR17e+jRuh\n7xEIvgRuZ11VtCauZRNJQotepKsxxCtPf2r/iojUKTx7t/W6IGFYg6XLX4rr\nzJnNmT5WbaOnXYi1AalPceElamNz4dmWXRbjgpKhEoqaJfvzEjLo1c60yjLS\nIfj9DtggIaw14RpzW8Ebvij0+32Vh+XcTnTc3UeCUVef/dvaodArWwZMgcLm\nDbpKtRXrffKARbNqQngDIBhwOxhTFkv4WjRag3kTMy/TZv39tmDWxKdHbetz\nzL3ZEEK1NrTnjOXn3ar1TGOdLKy0OF5gCL6y1dpgUC4OoDmJJ+hD5uxCx3x2\nonWwrd8qEvqsLFnOL3GsQd8GS2L1k5M0YG74nZibAXCgfUeVXLIKNXjoKPuY\n/gaf\r\n=VAT2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF5Mx8ADh1KBHO5I2Kyi41S/Dtr+Dt6OPY5peRsnGZS2AiEAnbbeKneyOgem0gXHKYVtENO4D1XUcfyiMzJcQ921s9o="}]},"maintainers":[{"name":"scudco","email":"adamandersonis@gmail.com"},{"name":"sdhull","email":"p.witty@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ember-cli-stripe_1.0.4_1530114129771_0.8079412730913536"},"_hasShrinkwrap":false}},"time":{"created":"2018-06-27T15:42:09.703Z","1.0.4":"2018-06-27T15:42:09.878Z","modified":"2022-04-04T20:16:01.845Z"},"maintainers":[{"email":"nolane@gmail.com","name":"nolman"},{"email":"adamandersonis@gmail.com","name":"scudco"},{"email":"p.witty@gmail.com","name":"sdhull"}],"description":"Stripe checkout for Ember","homepage":"https://github.com/boundless-inc/ember-cli-stripe#readme","keywords":["ember-addon","stripe","stripe.js","stripejs","sweettooth"],"repository":{"type":"git","url":"git+https://github.com/boundless-inc/ember-cli-stripe.git"},"author":{"name":"Bill Curtis","email":"wcurtis@sweettoothhq.com"},"bugs":{"url":"https://github.com/boundless-inc/ember-cli-stripe/issues"},"license":"MIT","readme":"# Stripe checkout for Ember [![Build Status](https://travis-ci.org/sweettooth/ember-cli-stripe.svg?branch=master)](http://travis-ci.org/sweettooth/ember-cli-stripe)\n\n![Preview](https://www.sweettoothrewards.com/wp-content/uploads/stripe-checkout.png)\n\n## Description\n\nSimplest way to implement card payments in your Ember app.\n\nThis addon integrates Stripe's embedded payment form, Checkout.\nSee [Stripe Checkout](https://stripe.com/docs/checkout#integration-custom) docs.\n\nThe best documentation is the sample application in `tests/dummy`.\n\n## Installation\n\n```sh\nember install ember-cli-stripe \n```\n\n## Usage\n\n```handlebars\n{{stripe-checkout\n  image=\"/square-image.png\"\n  name=\"Demo Site\"\n  description=\"2 widgets ($20.00)\"\n  amount=2000\n  onToken=(action \"processStripeToken\")\n}}\n```\n\n## Component properties\n\nProperty              | Purpose\n--------------------- | -------------\n`label`               | Stripe Checkout button text.\n`isDisabled`          | When true, the Stripe Checkout button is disabled.\n`showCheckout`        | Can be used to open the Stripe Checkout modal dynamically.\n\nBesides the above, all [Stripe Checkout configuration options](https://stripe.com/docs/checkout#integration-custom) \nare supported. If you notice anything missing please open an issue.\n\n### Actions\n\nThe primary action of this component, `onToken` is called when the Stripe checkout succeeds. Its main param is a [Stripe Token](https://stripe.com/docs/api#tokens) object.\n\n```javascript\nimport Ember from 'ember';\n\nexport default Ember.Controller.extend({\n  actions: {\n    /**\n     * Receives a Stripe token after checkout succeeds\n     * The token looks like this https://stripe.com/docs/api#tokens\n     */\n    processStripeToken(token, args) {\n      // Send token to the server to associate with account/user/etc\n    }\n  }\n});\n```\n\nList of all actions:\n\nAction                | Purpose\n--------------------- | -------------\n`onToken`             | The callback invoked when the Checkout process is complete.\n`onOpened`            | The callback invoked when Checkout is opened.\n`onClosed`            | The callback invoked when Checkout is closed.\n\n\n## Configuration\nAll Stripe Checkout configuration options can be set in your apps config.\n\nIn most cases, you will want to add at least your Stripe **publishable key** to your app's config, but this can be set as a property on the component too. \n\n```javascript\n// config/environment.js\nmodule.exports = function(environment) {\n  var ENV = {\n    stripe: {\n        key: 'pk_test_C0sa3IlkLWBlrB8laH2fbqfh',\n        ....\n    },\n  };\n\n  return ENV;\n};\n```\n\n**Note:** If Stripe options are set in the *environment.js* file **and** when invoking the component, the later value will win.\n\nMultiple Stripe keys are supported, when passed directly to the component.\n\n\n## Compatibility\n\nThis addon is tested against Ember 1.13+.\n\nFor older versions of Ember, use version `0.4.0` and check the [old docs](https://github.com/sweettooth/ember-cli-stripe/blob/v0.4.0/README.md).\n\n**Note:** At your own risk, feel free to try current version, it might still work.\n\n\n## Contributing\n\nPRs welcome!\n\n* `git clone` this repository\n* `npm install`\n* `bower install`\n\n### Running\n\n* `ember server`\n* Visit your app at http://localhost:4200.\n\n### Running Tests\n\n* `npm test` (Runs `ember try:testall` to test your addon against multiple Ember versions)\n* `ember test`\n* `ember test --server`\n\n\nFor more information on using ember-cli, visit [http://www.ember-cli.com/](http://www.ember-cli.com/).\n","readmeFilename":"README.md"}