Tutorial can be found here.
git clone [email protected]:rwieruch/react-express-stripe.git
cd react-express-stripe
- Register at Stripe and Setup a Payment Account to access the Dashboard
- Find your API Keys (test_, live_)
- Replace frontend API keys: frontend/src/constants
- Replace backend APIU keys: backend/constants/
cd frontend
npm install
npm start
- visit http://localhost:3000/
cd backend
npm install
node index.js
- visit http://localhost:8080/
When using it in production, you have to use a real credit card. Otherwise, in development mode, you can use a Stripe's test credit cards:
- Email: Any Email
- Number: 4242 4242 4242 4242
- Date: Any Date in the Future
- CVC: Any 3 Numbers