Block progress and paypal express

Solved

Block progress and paypal express

TheodorFreundHT
Shopify Partner
12 1 0

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

Accepted Solution (1)
TheodorFreundHT
Shopify Partner
12 1 0

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

View solution in original post

Replies 3 (3)

aldoalprak
Shopify Partner
17 1 1

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

TheodorFreundHT
Shopify Partner
12 1 0

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

CrossBox
Shopify Partner
1 0 0

What does this workaround look like?