-
Notifications
You must be signed in to change notification settings - Fork 397
feat(checkout): CHECKOUT-9679 Handle Coupon Error #2726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| if (error instanceof Error) { | ||
| setCouponError(error.message); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We just relay the error message from the API here.
If it is not a standard error, then it will escalate to the ErrorBoundries and go to Sentry eventually.
|
checkout-js deployed to Integration US |
|
checkout-js deployed to Staging US |
⚡️ Lighthouse results🖥️ Desktop:
📱 Mobile:
|
|
checkout-js deployed to Production US |
What/Why?
Handle errors when applying a coupon or gift certificate.
Rollout/Rollback
Revert.
Testing
When a coupon is invalid
Screen.Recording.2025-12-09.at.16.16.38.mov
When maximum coupon usage reached
Screen.Recording.2025-12-09.at.16.22.15.mov