I’m building a Shopify One Page Checkout extension, and I need to block a user from proceeding to the payment page unless certain conditions are met. Specifically, I want to intercept the “Continue” button click, and only allow the user to continue if an API returns a positive value.
Can anyone guide me on how to implement this logic in the checkout flow? I want to ensure that if the API call returns a negative or invalid value, the user cannot proceed to the payment page.
Looking forward to any suggestions or best practices to achieve this!
Thanks in advance for your help!