I put my app in Beta on the Google Play store, and from there I got it on my Android phone.
However, when I run it, after the purchase completes OK on Google Play, I get an error and app crashes.
E/AndroidRuntime(31276): FATAL EXCEPTION: main
java.lang.ClassCastException: com.soomla.store.domain.virtualGoods.SingleUsePackVG cannot be cast to com.soomla.store.domain.virtualGoods.SingleUseVG
In my qml…
goods: [
SingleUseGood {
id: bGood
itemId: "b_item_id"
name: "B"
description: "Funny b"
purchaseType: StorePurchase { id: bPurchase; productId: bGood.itemId; price: 0.99; }
},
SingleUsePackGood {
id: b5Pack
itemId: "b_pack_5_id"
name: "5 Bs"
goodItemId: bGood.itemId
amount: 5
purchaseType: StorePurchase {id: b5Purchase; productId: b5Pack.itemId; price: 0.99;}
}
]
Where is mistake?