Repository navigation
fix(storefront-app): show backend user_message on any checkout error, not only CKT901 - #1324
Merged
Merged
Conversation
…r, not only CKT901 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TfDpM623CXFB6wADGxdC9B
…customer-facing error codes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TfDpM623CXFB6wADGxdC9B
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TfDpM623CXFB6wADGxdC9B
leomp12
added a commit
to ecomplus/cloud-commerce
that referenced
this pull request
Oct 12, 2026
…d of a payment error Update default storefront-app to 2.0.0-beta.230, which displays the `user_message` sent by checkout gates (CKT503, CKT802, CKT804, CKT805, CKT806) instead of the generic payment error toast. See ecomplus/storefront#1324 and #837. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017kuaEjP8yica7GhL6jeyZQ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Checkout.jscheckout()catch now shows the backenduser_message(warning toast) for the new customer-facing checkout gate errors:CKT503,CKT802,CKT804,CKT805,CKT806, only whenuser_messageis present.CKT901behavior is unchanged (toast +skipShippingApps.push), with or withoutuser_message.i19paymentErrortoast, as on master.Why
cloud-commerce#837 added opt-in wholesale (customers-only) checkout gates that respond with
error_code+user_message. Today those fall into the generic "payment error, try another payment method" toast.An explicit allowlist (instead of "any
user_message") is required to avoid regressions: existing errors already carryuser_message— e.g.CKT704on gateway rejection ("order saved, please contact us") and the legacy modules-api default "unexpected error" message — and must keep the payment-error guidance. Theuser_messageguard also keeps the pre-existingCKT802(disabled customer, no message) on the generic toast.After release, bump
@ecomplus/storefront-appin cloud-commercepackages/storefront/src/lib/scripts/vbeta-app.ts.🤖 Generated with Claude Code
https://claude.ai/code/session_01TfDpM623CXFB6wADGxdC9B