Discussing Shopify Functions development, deployment, and usage in Shopify apps.
I have an app that works with payment customizations, so i need the merchants to enter their payment method name in my app, so then in the function i can search that name in the shopify function input payment methods, and apply the customization to the ones that match.
The problem with this is that it needs to be a perfect text match for the customization to work, and i haven't found a reliable source of the names that the payment methods can have inside the function input.
For example, once i had a merchant that their payment method was called "Hyp", and it showed like that in his Settings > Payment methods, yet, at the end i found out that inside the function input, the payment method was named "credit card".
This becomes even harder considering that only after the merchant manually shares functions logs we can see the actual input of their function.
So does something like a "shopify functions input payment methods names list" exist?, or at least a reliable method to obtain that without needing a manual action from the merchant's part?