In CheckoutView.tsx, a single handleSubmit handles the payment flow.
- Places a pending Order
- Starts a Payment from the backend
- Starts Razorpay flow
- Verifies the Razorpay payment
All of these are being run sequentially. Error checking in between each step is not handled.
Maybe this can be done once proper error UI elements are done like Toasts / Error Pages.
Also, we have to setup sentry & posthog.
In CheckoutView.tsx, a single handleSubmit handles the payment flow.
All of these are being run sequentially. Error checking in between each step is not handled.
Maybe this can be done once proper error UI elements are done like Toasts / Error Pages.
Also, we have to setup sentry & posthog.