What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Block progress and paypal express

Solved

Block progress and paypal express

TheodorFreundHT
Shopify Partner
14 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
14 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 5 (5)

aldoalprak
Shopify Partner
19 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
14 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?

erik_lindberg_s
Shopify Partner
20 3 6

How where you able to move the code to server-side validation? You don't have access to a liquid checkout file?

ShipNotIncluded
Shopify Partner
16 0 2

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