On checkout, when I use useDeliveryGroups(), I get the shipping method name and handle. How do I fetch the shipping method ID based on this handle? Or is there any way to fetch the handle using the admin GraphQL API?
It doesn’t look like you can use the deliveryProfiles query to get the shipping method ID from within a checkout extension. How critical is getting this info?
You could explore setting up a backend service that queries deliveryProfiles to get the required shipping method ID based on the handle, and then pass this information to the Checkout UI extension using fetch: Configuration
I have few settings based on the shipping method on admin side. I want to apply them on checkout and for this I need to check the selected shipping method and match it to the in the settings. Is there any way to do this?
How is the shipping method handle created on checkout? How do I match the shipping method ID with the handle?