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.

Delay Gift Card (GC) redemption at checkout

Delay Gift Card (GC) redemption at checkout

jwarner
Shopify Partner
1 0 0

Im looking for a way to delay/pause the application of a Gift Card (GC) on the Checkout page if the GC number begins with a predefined prefix like "WEB". If they user enters such a GC number, we prevent the GC from being applied to the Checkout. Our app will check if the GC already exist in Shopify? If it does not, call a third party API to check the balance on the GC if it exists, create the equivalent GC in Shopify and then apply the Shopify GC to the checkout. If they GC already exist in Shopify, the normal Shopify GC application to checkout and error messages will take over.

The documented React Hooks in the Shopify docs does not provide a way to achieve this behavior but I was hoping someone found an a way that is not officially documented by Shopify. Any ideas group?

 

jwarner_0-1711589483273.png

 

Replies 0 (0)