Embedded Stripe payment for testing
- Publishable API key to load stripe
- Client secret
- Create .env file
- Create two variables and assigned values accordingly:
- VITE_PUBLISHABLE_API_KEY e.g.
test_smthg_51INuQ0EVsCjvbcLcd9gU4whxH1Lx3g0KxtvxT7F6AAe1VZO26JwAztdiDdKoWypfLWnxcNITq000bkZX4TlUxvm200CXbvIPEP
- VITE_CREATE_CHECKOUT_SESSION_PATH e.g.
https://your_instance/create-checkout-session
- Install dependencies
npm install
- Run dev server
npm run dev