{"id":13422552,"url":"https://github.com/azmenak/react-stripe-checkout","last_synced_at":"2026-01-21T05:04:12.765Z","repository":{"id":34768297,"uuid":"38750377","full_name":"azmenak/react-stripe-checkout","owner":"azmenak","description":"Load stripe's checkout.js as a react component. Easiest way to use checkout with React.","archived":false,"fork":false,"pushed_at":"2020-08-03T18:00:29.000Z","size":110,"stargazers_count":979,"open_issues_count":40,"forks_count":159,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-10-24T10:39:03.550Z","etag":null,"topics":["react","stripe-checkout"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/azmenak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-08T11:37:42.000Z","updated_at":"2025-10-15T23:19:49.000Z","dependencies_parsed_at":"2022-09-17T06:31:41.638Z","dependency_job_id":null,"html_url":"https://github.com/azmenak/react-stripe-checkout","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/azmenak/react-stripe-checkout","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azmenak%2Freact-stripe-checkout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azmenak%2Freact-stripe-checkout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azmenak%2Freact-stripe-checkout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azmenak%2Freact-stripe-checkout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/azmenak","download_url":"https://codeload.github.com/azmenak/react-stripe-checkout/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azmenak%2Freact-stripe-checkout/sbom","scorecard":{"id":221247,"data":{"date":"2025-08-11","repo":{"name":"github.com/azmenak/react-stripe-checkout","commit":"3ebf6608274fcef1ff5b8698e7a8ccce086b3c29"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Code-Review","score":5,"reason":"Found 12/22 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 20 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T02:33:39.708Z","repository_id":34768297,"created_at":"2025-08-17T02:33:39.708Z","updated_at":"2025-08-17T02:33:39.708Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28627387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["react","stripe-checkout"],"created_at":"2024-07-30T23:00:47.654Z","updated_at":"2026-01-21T05:04:12.724Z","avatar_url":"https://github.com/azmenak.png","language":"JavaScript","funding_links":[],"categories":["Utilities","Uncategorized","JavaScript"],"sub_categories":["Integrations with Third Party Services","Uncategorized"],"readme":"[![npm version](https://badge.fury.io/js/react-stripe-checkout.svg)](http://badge.fury.io/js/react-stripe-checkout)\n[![Dependencies Status](https://david-dm.org/azmenak/react-stripe-checkout.svg)](https://david-dm.org/react-stripe-checkout)\n[![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/azmenak/react-stripe-checkout)\n\n# React Stripe Checkout Component\nStripe's Checkout makes it almost too easy to take people's money.\nThis should make it even easier if you're building a react\napplication.\n\n### Installation\n\nGet started by installing with npm\n\n    npm install react-stripe-checkout\n\nRequires babel for compiling. If anyone is having issues with that,\nopen an issue and I'll do my best to better document the build process.\n\n#### Changes in version 2.0\n\nThere used to be a separate `.styl` file and respective `.css` output. These have been removed and are now written directly in js.\n\n### Requirements\n\n`token` and `stripeKey` are the only *required* props,\neverything else is optional as per the stripe docs. See [Checkout\nDocs](https://stripe.com/docs/legacy-checkout). All props\ngo through simple validation and are passed to stripe checkout, they're\nalso documented in `StripeCheckout.js`.\n\n```jsx\nimport React from 'react'\nimport StripeCheckout from 'react-stripe-checkout';\n\nexport default class TakeMoney extends React.Component {\n  onToken = (token) =\u003e {\n    fetch('/save-stripe-token', {\n      method: 'POST',\n      body: JSON.stringify(token),\n    }).then(response =\u003e {\n      response.json().then(data =\u003e {\n        alert(`We are in business, ${data.email}`);\n      });\n    });\n  }\n\n  // ...\n\n  render() {\n    return (\n      // ...\n      \u003cStripeCheckout\n        token={this.onToken}\n        stripeKey=\"my_PUBLISHABLE_stripekey\"\n      /\u003e\n    )\n  }\n}\n```\n\nThis will give you a default *Stripe-style* button which looks like this:\n\n![stripe checkout button](example.png)\n\n### Send all the props!\n\n```jsx\n\u003cStripeCheckout\n  name=\"Three Comma Co.\" // the pop-in header title\n  description=\"Big Data Stuff\" // the pop-in header subtitle\n  image=\"https://stripe.com/img/documentation/checkout/marketplace.png\" // the pop-in header image (default none)\n  ComponentClass=\"div\"\n  label=\"Buy the Thing\" // text inside the Stripe button\n  panelLabel=\"Give Money\" // prepended to the amount in the bottom pay button\n  amount={1000000} // cents\n  currency=\"USD\"\n  stripeKey=\"...\"\n  locale=\"zh\"\n  email=\"info@vidhub.co\"\n  // Note: Enabling either address option will give the user the ability to\n  // fill out both. Addresses are sent as a second parameter in the token callback.\n  shippingAddress\n  billingAddress={false}\n  // Note: enabling both zipCode checks and billing or shipping address will\n  // cause zipCheck to be pulled from billing address (set to shipping if none provided).\n  zipCode={false}\n  alipay // accept Alipay (default false)\n  bitcoin // accept Bitcoins (default false)\n  allowRememberMe // \"Remember Me\" option (default true)\n  token={this.onToken} // submit callback\n  opened={this.onOpened} // called when the checkout popin is opened (no IE6/7)\n  closed={this.onClosed} // called when the checkout popin is closed (no IE6/7)\n  // Note: `reconfigureOnUpdate` should be set to true IFF, for some reason\n  // you are using multiple stripe keys\n  reconfigureOnUpdate={false}\n  // Note: you can change the event to `onTouchTap`, `onClick`, `onTouchStart`\n  // useful if you're using React-Tap-Event-Plugin\n  triggerEvent=\"onTouchTap\"\n  \u003e\n  \u003cbutton className=\"btn btn-primary\"\u003e\n    Use your own child component, which gets wrapped in whatever\n    component you pass into as \"ComponentClass\" (defaults to span)\n  \u003c/button\u003e\n\u003c/StripeCheckout\u003e\n```\n\n### Other info\nThis was probably terribly written, I'll look at any PR coming my way.\n\n### Resources \n\n* Non SCA Compliant: [Client-side Stripe Checkout with React and Express](https://www.robinwieruch.de/react-express-stripe-payment/)\n* SCA Compliant: [Server-side Stripe Checkout with React and Express](https://github.com/rwieruch/react-express-stripe)\n\n### Contributors\n- [@orhan-swe](https://github.com/orhan-swe) added updates to checkout after instantiation and fixed a loading error\n- [@ekalvi](https://github.com/ekalvi) added multiple checkout buttons per page\n- [@jstaffans](https://github.com/jstaffans) adding support for locale\n- [@gabestein](https://github.com/gabestein) added billing and shipping options\n- [@samcorcos](https://github.com/samcorcos) added testing\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazmenak%2Freact-stripe-checkout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazmenak%2Freact-stripe-checkout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazmenak%2Freact-stripe-checkout/lists"}