Stripe payment React-Flask
Stripe payment React-Flask Payment Flow User in the React site add items to cart User navigate to cart page User click on “Pay with card” On user input React call the back-end passing cart and user data Flask validate cart items throught database (pricing and availability) Flask ask Stripe to create a checkout session, then send back session url to React React redirect User to stripe checkout page User perform payment using card Stripe redirect User to success/failed url (the cart React page) If payment success React empty cart and notify User Stripe notify Flask throught webhook about payment completed with basical order info Flask update database and React about buyed items React (front-end) React functional with typescript.