{"_id":"@danseaman6/react-stripe-js","_rev":"1-881ebe3956ae3a224a91fae4407e5b93","name":"@danseaman6/react-stripe-js","dist-tags":{"latest":"7.0.0-beta.1-ds"},"versions":{"7.0.0-beta.1-ds":{"name":"@danseaman6/react-stripe-js","private":false,"version":"7.0.0-beta.1-ds","description":"React components for Stripe.js and Stripe Elements","main":"dist/react-stripe.js","module":"dist/react-stripe.esm.js","jsnext:main":"dist/react-stripe.esm.js","browser:min":"dist/react-stripe.umd.min.js","browser":"dist/react-stripe.umd.js","scripts":{"test":"jest","rollup":"rollup -c","lint":"eslint src examples","flow":"flow","build":"yarn run lint && yarn run flow && yarn run rollup","clean":"rimraf dist","prettier":"prettier './**/*.js' './**/*.css' './**/*.md' --write","prettier-list-different":"prettier './**/*.js' './**/*.css' './**/*.md' --list-different","prepublish":"yarn run clean && yarn run build","publish":"npm publish --access public","doctoc":"doctoc README.md","storybook":"start-storybook -p 6006 "},"keywords":["React","Stripe","Elements"],"author":{"name":"Stripe","url":"https://www.stripe.com"},"license":"MIT","dependencies":{"prop-types":"^15.7.2"},"repository":{"type":"git","url":"git+https://github.com/stripe/react-stripe-js.git"},"jest":{"setupFilesAfterEnv":["<rootDir>/test/setupJest.js"]},"devDependencies":{"@babel/cli":"^7.7.0","@babel/core":"^7.7.2","@babel/preset-env":"^7.7.1","@babel/preset-flow":"^7.0.0","@babel/preset-react":"^7.7.0","@storybook/addon-actions":"^5.2.6","@storybook/addon-links":"^5.2.6","@storybook/addons":"^5.2.6","@storybook/react":"^5.2.6","babel-eslint":"^10.0.3","babel-jest":"^24.9.0","babel-loader":"^8.0.6","enzyme":"3.10","enzyme-adapter-react-16":"^1.14.0","eslint":"6.6.0","eslint-config-airbnb":"18.0.1","eslint-config-prettier":"^6.5.0","eslint-plugin-flowtype":"^4.3.0","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.6.3","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-prettier":"^3.1.1","eslint-plugin-react":"^7.14.3","eslint-plugin-react-hooks":"^1.7.0","flow-bin":"^0.111.3","jest":"^24.9.0","prettier":"^1.19.1","react":"~16.8.0","react-dom":"~16.8.0","rimraf":"^2.6.2","rollup":"^1.27.0","rollup-plugin-babel":"^4.3.3","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-replace":"^2.2.0","rollup-plugin-terser":"^5.1.2"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"gitHead":"9ae9029053c492a920385440f7e7a468d4f9d567","bugs":{"url":"https://github.com/stripe/react-stripe-js/issues"},"homepage":"https://github.com/stripe/react-stripe-js#readme","_id":"@danseaman6/react-stripe-js@7.0.0-beta.1-ds","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-5FYKtgdBs+XlHZ9xHXnXiM+iilT+dfm6vJc+AT+sUWqxGZ0ZwtVzMKlSihyxUzl8azxyxe4dtOcKu/c9tqxQwA==","shasum":"9773d78d25dbb5ba7579cafaac00b2051a47958f","tarball":"https://registry.npmjs.org/@danseaman6/react-stripe-js/-/react-stripe-js-7.0.0-beta.1-ds.tgz","fileCount":19,"unpackedSize":81815,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeD2ECCRA9TVsSAnZWagAAhjUP/08B57w5BmbEoCpMOWAe\nNgofd6eM8MIVsW7U8uLgYfs2O3AUS0dCdEViIT4/INN9Fxkq5or1Bb3amitA\n60HtHDNmDPbUuTC36Z2PMFpxAZLa5RV/Ah0BSM+wjVytQqMQFYLQYuz1Jf1X\nwg6FaQjuvCcy6fOX+l65MliztrSUsA5mfb/CTsN8VJqeP+ztCodd/AncRd93\nEn9t49XP+SH1RQTmUPXCHxMlrsgDkY7fmSUkmhQoE+fEByTbWuP1A5etRSlq\n6jK7FUCihjhE+/kvhWjOJGiGhVqSq6P+TdHzVw4Hxx4FWlt6z6UKNBE8+yFf\nnTNLnhHokrtURlORgwh9gBUjlvWf5swbA1qd/6uMEEPt73jAMipplhdBKgaH\nejrtAZwvkL9x7bNmexfQTSVbkFx0CZXGCkn8ZYOozeV6FPLOTPu5v8R7hFLn\nbMeTdFaZKT1Nt5us0MkF0ro8lIZWzMC/iSTbgIABni7TG4pxvOn/TOdJAQiL\nCkGySS4H7ky5idJVDpmcsHWQGYc1b3e3tcFfAydiKcAdcuXDmi8f1arezPo9\n7tUTligSdIJK924oDuuxNf079du9WAduPPbQCSRIqpjD3ECxz5WheUnGz8hN\ndTfYigdv0N7hdF8uZBt4/RPvXLyehBunVZrMD7X6BmcEt6hClw1fX8CcypyU\nE9L/\r\n=n56/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrZ+jq8NZc08EsJuEHrwJweVJ0EY2K2kw4NjR9iJt6jwIhAN8hAIb35863OMei72BYsU3IkF/6s61NwhjahxgolIEg"}]},"maintainers":[{"name":"danseaman6","email":"danseaman6@gmail.com"}],"_npmUser":{"name":"danseaman6","email":"danseaman6@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-stripe-js_7.0.0-beta.1-ds_1578066177942_0.02611327011433051"},"_hasShrinkwrap":false}},"time":{"created":"2020-01-03T15:42:57.912Z","7.0.0-beta.1-ds":"2020-01-03T15:42:58.108Z","modified":"2022-04-05T02:42:33.431Z"},"maintainers":[{"name":"danseaman6","email":"danseaman6@gmail.com"}],"description":"React components for Stripe.js and Stripe Elements","homepage":"https://github.com/stripe/react-stripe-js#readme","keywords":["React","Stripe","Elements"],"repository":{"type":"git","url":"git+https://github.com/stripe/react-stripe-js.git"},"author":{"name":"Stripe","url":"https://www.stripe.com"},"bugs":{"url":"https://github.com/stripe/react-stripe-js/issues"},"license":"MIT","readme":"# React Stripe.js\n\nReact components for [Stripe.js](https://stripe.com/docs/stripe-js) and\n[Stripe Elements](https://stripe.com/docs/elements).\n\n[![build status](https://img.shields.io/travis/stripe/react-stripe-js/master.svg?style=flat-square)](https://travis-ci.org/stripe/react-stripe-js)\n[![npm version](https://img.shields.io/npm/v/@stripe/react-stripe-js.svg?style=flat-square)](https://www.npmjs.com/package/@stripe/react-stripe-js)\n\n## Getting Started\n\n- [Add React Stripe.js to your React app](https://stripe.com/docs/stripe-js/react#setup)\n- [Try it out using CodeSandbox](https://codesandbox.io/s/react-stripe-official-q1loc?fontsize=14&hidenavigation=1&theme=dark)\n\n## Documentation\n\n- [React Stripe.js Docs](https://stripe.com/docs/stripe-js/react)\n- [Migrate from `react-stripe-elements`](docs/migrating.md)\n- [Legacy `react-stripe-elements` docs](https://github.com/stripe/react-stripe-elements/#react-stripe-elements)\n- [Examples](examples)\n\n### Minimal Example\n\n```jsx\nimport React from 'react';\nimport ReactDOM from 'react-dom';\n\nimport {\n  CardElement,\n  Elements,\n  useStripe,\n  useElements,\n} from '@stripe/react-stripe-js';\n\nconst stripe = window.Stripe('pk_test_6pRNASCoBOKtIshFeQd4XMUh');\n\nconst MyCheckoutForm = () => {\n  const stripe = useStripe();\n  const elements = useElements();\n\n  const handleSubmit = async (event) => {\n    ev.preventDefault();\n    const {error, paymentMethod} = await stripe.createPaymentMethod({\n      type: 'card',\n      card: elements.getElement(CardElement),\n    });\n  };\n\n  return (\n    <form onSubmit={handleSubmit}>\n      <CardElement />\n      <button>Pay</button>\n    </form>\n  );\n};\n\nconst App = () => {\n  return (\n    <Elements stripe={stripe}>\n      <MyCheckoutForm />\n    </Elements>\n  );\n};\n\nReactDOM.render(<App />, document.body);\n```\n\n### Minimum Requirements\n\nReact Stripe.js depends on the\n[React Hooks API](https://reactjs.org/docs/hooks-intro.html). The minimum\nsupported version of React is v16.8. If you use an older version, upgrade React\nto use this library. If you prefer not to upgrade your React version, we\nrecommend using legacy\n[`react-stripe-elements`](https://github.com/stripe/react-stripe-elements).\n\n### Contributing\n\nIf you would like to contribute to React Stripe.js, please make sure to read our\n[contributor guidelines](CONTRIBUTING.md).\n","readmeFilename":"README.md"}