Discount function not deploy in prod

Hi shopify devs,
I’m building a custom app for a specific Shopify Plus store. The app includes a Shopify Function (an order discount), which works perfectly on a development store.

I chose the “Single store” distribution method and used the generated installation URL to install the app on the target Plus store. The app installs successfully, but the Shopify Function does not appear to be available on that store.

Before installing the app, I ran the command:
shopify app deploy

However, after installation, running the query shopifyFunctions on the Plus store returns an empty list, while it works correctly on the development store.

Can you confirm if additional steps or flags are required to activate the Shopify Function on the Plus store?

Hello Seiffoudine_Mogne : ON Shopify Plus discount functions should work on a custom apps.
Ensure Checkout Extensibility :
Verify that the Shopify Plus store has upgraded to Checkout Extensibility

For non plus : Discount functions will run only in public apps and not for private or custom apps.
When you are on test store discount function will work but once you apply this to a live store but keep the app private then discount functions will not execute.

So you need to build a public app to achieve the feature.