# react-stripe-checkout
**Repository Path**: mirrors_clientIO/react-stripe-checkout
## Basic Information
- **Project Name**: react-stripe-checkout
- **Description**: Load stripe's checkout.js as a react component. Easiest way to use checkout with React.
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-08-08
- **Last Updated**: 2026-03-21
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
[](http://badge.fury.io/js/react-stripe-checkout)
[](https://david-dm.org/react-stripe-checkout)
[](https://gitter.im/azmenak/react-stripe-checkout)
# React Stripe Checkout Component
Stripe's Checkout makes it almost too easy to take people's money.
This should make it even easier if you're building a react
application.
### Installation
Get started by installing with npm
npm install react-stripe-checkout
Requires babel for compiling. If anyone is having issues with that,
open an issue and I'll do my best to better document the build process.
#### Changes in version 2.0
There used to be a separate `.styl` file and respective `.css` output. These have been removed and are now written directly in js.
### Requirements
`token` and `stripeKey` are the only *required* props,
everything else is optional as per the stripe docs. See [Checkout
Docs](https://stripe.com/docs/checkout#integration-custom). All props
go through simple validation and are passed to stripe checkout, they're
also documented in `StripeCheckout.js`.
```jsx
import React from 'react'
import StripeCheckout from 'react-stripe-checkout';
export default class TakeMoney extends React.Component {
onToken = (token) => {
fetch('/save-stripe-token', {
method: 'POST',
body: JSON.stringify(token),
}).then(response => {
response.json().then(data => {
alert(`We are in business, ${data.email}`);
});
});
}
// ...
render() {
return (
// ...
)
}
}
```
This will give you a default *Stripe-style* button which looks like this:

### Send all the props!
```jsx
```
### Other info
This was probably terribly written, I'll look at any PR coming my way.
### Contributors
- [@orhan-swe](https://github.com/orhan-swe) added updates to checkout after instantiation and fixed a loading error
- [@ekalvi](https://github.com/ekalvi) added multiple checkout buttons per page
- [@jstaffans](https://github.com/jstaffans) adding support for locale
- [@gabestein](https://github.com/gabestein) added billing and shipping options
- [@samcorcos](https://github.com/samcorcos) added testing