VerifyBuyerError not caught or handled in validation #85
Labels
priority: low
The issue/PR is low priority—not many people are affected or there’s a workaround, etc.
type: bug
The issue is a confirmed bug.
Describe the bug
If a customer manually declines/cancels SCA verification in banking app, the Square SDK verifyBuyer method throws a VerifyBuyerError, however there is no catch statement on these promises (assets/js/frontend/wc-square.js lines 309 and 414) which results in this error not being caught, the checkout form remaining locked, and no error message being displayed to the customer.
To reproduce
Expected behavior
VerifyBuyerError is caught and passed to handle_error method to display message to user and unblock checkout UI.
Environment (please complete the following information):
Additional details
I've tested locally adding a simple catch statement manually, and it resolved the issue:
The text was updated successfully, but these errors were encountered: