https://github.com/ripeworks/react-checkout
E-commerce checkout frontend
https://github.com/ripeworks/react-checkout
Last synced: about 1 year ago
JSON representation
E-commerce checkout frontend
- Host: GitHub
- URL: https://github.com/ripeworks/react-checkout
- Owner: ripeworks
- Created: 2020-12-04T13:51:20.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-08-29T01:00:03.000Z (over 3 years ago)
- Last Synced: 2025-02-05T18:03:01.886Z (over 1 year ago)
- Language: TypeScript
- Size: 44.9 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React Checkout
Basic shopping cart checkout frontend for plugging into wherever.
## Support
Currently react-checkout does make some assumptions about your platform.
- Headless styling with tailwindcss class names
- Stripe for payments
- English / US
## Usage
```jsx
import { CheckoutProvider } from "react-checkout";
function App() {
return (
);
}
```
### Stripe
- Provide a publishable key using `NEXT_PUBLIC_STRIPE_KEY` environment variable.
- Create an `intent.ts` api route, a sample one is included in this repo. You can also roll your own, it should provide a payment intent client secret response.