Currently, I am working on an app that makes use of Shopify Functions and I have a question regarding payment customization.
I have noticed that the deliveryGroups array is empty when a buyer visits the checkout page sent through the “Send invoice” button on unpaid orders, despite a delivery method being preselected at that stage of the checkout. I suspect this to be a bug.
This issue creates a problem as we have a function that hides payment methods based on the selected delivery method. If we do not receive information about the selected delivery method, no payment method will be hidden, which means that the buyer can select a payment method that is not allowed for a specific delivery method.
Is there a way to resolve this issue?
Thank you.