Hello, Im developing checkout UI extension for thank you page. I need to know selected delivery method by customer. However useDeliveryGroups
seems to return partial data. Options are missing code
. Am I missing something? I have given scopes to write_shipping
.
This is the option object which only contains title
, but for me its not reliable to rely on it.
{
"handle": "42f48b097bf5fa0f70010a20d7162752a46d-a8cf3facf809116eb97b7c4b3e16",
"title": "My custom delivery",
"type": "shipping",
"carrier": {},
"cost": {
"amount": 0,
"currencyCode": "EUR"
},
"costAfterDiscounts": {
"amount": 0,
"currencyCode": "EUR"
},
"deliveryEstimate": {},
"code": "",
"metafields": []
}