Discussing Shopify Functions development, deployment, and usage in Shopify apps.
I AM STUCK ON THIS POINT NOW FOR A VERY LONG TIME I WANT TO REMOVE THE AUTOMATIC DISCOUNT THAT IS APPLIED TO THE CHECKOUT USING DISCOUNT FN I WANT TO CREATE A LOGIC WHERE IF USER SELECT LETS SAY A PAYMNT BY (CREDIT CARD ) THEN THE AUTOMTIC DISCOUNT SHOULD BE APPLIED AND ONCE THE USER SELECT CASH PAYMENT THE DISCOUNT SHOULD BE REMOVED I TRIED DOING IT FROM (CHECK UI EXTENSION ) ALSO BUT THOSE HOOKS CAN BE USED FOR REOMVING OR APPLYING DISCOUNT THAT IS APPLIED USING A CODE
THERE ARE NO INPUT TO USE PAYMENT METHODS ELSE IT WHOULD BE EASIER TO HANDLE THIS PROBLEM