For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
Hello everyone,
I have created an extension targeting the checkout render block. It does some checks and then blocks the checkout depending on the result.
We noticed, that this is skipped, when the customer uses paypal express checkout. Anyone seen this behaviour before? Could this be resolved with moving the code to server-side validation?
Thank you
Theo
Solved! Go to the solution
This is an accepted solution.
I actually just moved the code to server-side validation. This has its own caveats though, but at least it blocks any checkout type
Currently blocking express checkout is not possible. please see this docs https://shopify.dev/docs/api/functions/reference/cart-checkout-validation/graphql/common-objects/buy...
You can make a workaround by hiding the express checkout
This is an accepted solution.
I actually just moved the code to server-side validation. This has its own caveats though, but at least it blocks any checkout type
What does this workaround look like?
How where you able to move the code to server-side validation? You don't have access to a liquid checkout file?
To those here wondering, Theo might be using the Cart and checkout Validation Function API to do block the progress for express checkout:
https://shopify.dev/docs/api/functions/reference/cart-checkout-validation