I\'m using this code to order a product place in the cart. I\'m trying to get the order ID of the order generated. I\'m not too sure what is happening as the \'result\' is t
You cannot pass a key path to a key subscription and id is an Int:
if let resultDictionary = responceDictionary["result"] as? [String:Any],
let orderID = resultDictionary["id"] as? Int {
let orderIDString = "\(orderID)"
print(orderIDString)
}