On Checkout validation, detailed error messages aren't being displayed on Checkout Page #240
Labels
priority: low
The issue/PR is low priority—not many people are affected or there’s a workaround, etc.
When "Debug Mode" is enabled in the WooCommerce Square extension and set to "Show on Checkout Page" or "Both," the detailed error messages fail to appear on the checkout page as expected, showing only the generic user-facing error message. The expected behavior for me is either the detailed message replacing the generic one or both messages being displayed together.
Steps to reproduce
Expected behavior
The detailed error message should be displayed on the checkout page (e.g., "3D Secure Verification Token is missing", or any other you forced to happen).
Current behavior
The checkout page only displays a generic user-facing error message instead of the expected detailed error message, even when debug mode is enabled.
Initial investigation
I noticed that this piece of code is properly adding two notices when an issue occurs during checkout:
I also notice that WooCommerce's
wc_add_notice
function is correctly adding both notices to the session.However, only the first (user-facing) message is displayed on the Checkout Page.
Just for reference, until we have this fixed, to make the detailed checkout payment gateway error messages to appear on my local environment and fulfill my debugging needs during development, I changed this to the lines below, and it's working as needed.
The text was updated successfully, but these errors were encountered: