- Add modal.confirm_close: true to prompt confirmation and abort in-flight payments when user clicks Cancel (X)
- Implement modal.ondismiss to track cancellation and reset checkout loading state
- Add isPaymentCancelled guard in Razorpay handler callback to prevent unintended payment verification after dismissal
- Handle loading state cleanup on payment.failed event