Block checkout proceed progress based on discount/gift card code amount

In Checkout/Cart page, I want to add validation on proceed checkout steps functionality based on gift card code amount and order total.

I have gone through https://shopify.dev/docs/apps/checkout/validation/server-side and https://shopify.dev/docs/apps/checkout/validation#client-side-validation

Some hints/help will be appreciated. Thanks

What type of help are you looking for? The Shopify Functions docs have pretty much all the general information you’ll need.

If you could reply with specific questions, it’ll be easier to help you.

So I want to block checkout if gift card applied amount is greater than cart total, so that rider can proceed to complete order. Can you please help me with objects I need to use to validate the condition. I am using Input.Cart (Please refer screenshot attached) . Is there any way I can get applied gift card amount value?

Note: Payment method is covered by gift card.

Hi, if you are on Shopify Plus you can use Discount Guardian to block discount codes based on rules such as the shipping address, specific product variants and if a gift card is being used.

@sk92 did you find any solutions?