Closed michaeldcain closed 3 years ago
Reported several more times in pNPgK-5bA-p2
As of https://github.com/Automattic/wp-calypso/pull/47943 and D53596-code we are now displaying the full message from the server to the customer. The message could still be improved and made more specific, but at least this is better than before.
Thanks @sirbrillig. I think I'll go ahead and close this issue, since we're now returning the server error and improving the coupon error messages on the server falls more under @Automattic/martech's work.
When a user attempts to apply a valid coupon to a cart without valid items (i.e. a plan coupon to a cart with only domains), we show the following error:
The error that returns from the server is slightly more applicable:
message: "Sorry, but we were not able to find that coupon. Please check that you typed the coupon code correctly and that this coupon is for the product you have selected."
We should either return a more accurate coupon error from the endpoint, or show the full error message to the user.