Sub billingmanager_OwnedProducts (Success As Boolean, purchases As Map)
Log(Success)
If Success Then
Log(purchases)
For Each p As Purchase In purchases.Values
Log(p.ProductId & ", Purchased? " & (p.PurchaseState = p.STATE_PURCHASED)) '<<< always true
Log(p.ProductId & ", Canceled? " & (p.PurchaseState = p.STATE_CANCELED)) '<<< always false
Log(p.ProductId & ", Refunded? " & (p.PurchaseState = p.STATE_REFUNDED)) '<<< always false
Next
End If
End Sub