Shopify Functions allow developers to customize the backend logic that powers parts of Shopify.
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.
The Payment Customization API doesn't currently support draft orders.
https://shopify.dev/docs/api/functions/reference/payment-customization#limitations
@agastify, I find this situation perplexing because when the merchant clicks "Send invoice" for an unpaid order, the order already exists in the system and is not considered a draft. We can confirm that the function has been executed as it has thrown an error. Therefore, I suspect that the issue may lie elsewhere.
As a business owner, have you ever wondered when your customer's first impression of yo...
By Skye Jun 6, 2023We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023