Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
how to give an auto discount to the customer when he selects online payment on checkout page?
Hi Arkray,
You probably can't achieve this without Shopify Plus.
Typically, for custom discounting, I would recommend the Shopify Functions API. Only Plus stores can build custom apps with this API, but any store can use public apps built with it.
However, Shopify Functions discounts don't have access to information about the selected payment method. If I had to guess, the Checkout UI extensions API probably does. You could probably put together a solution where a checkout UI extension sets a special cart attribute based on the payment method, and then your Shopify Functions discount only applies based on that cart attribute. The thing is, Checkout UI extensions are also Plus-only.
If you are on Plus, though, then the solution I outlined above should work for you. You can build a custom app.
Hope this helps,
Tobe
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025