First attempt to bring them all together
some more updates
1st draft. Working for Amazon and Google. Samsung not tested yet. Needs enhancements
Added livecode command for setting the type of the item (inapp or subs)
added livecode command mobileSetPurchaseProperty(itemID, propName, propValue)
added livecode command mobileGetPurchaseProperty(itemID, propName). Not 100% complete yet
updated mobileGetPurchaseProperty to query the properties returned by the store as well (apart from the ones that the user sets)
Added livecode command mobileGetPurchases. Tested for Amazon/Samsung/Google
Added mobileRequestProductDetails(prodID) livecode command. Not complete yet. Implemented only for google
Added livecode command mobileMakePurchase(prodID, quantity, payload). Tested for Google/Amazon
Added livecode command mobileRequestProductDetails(prodId) for Amazon/Samsung. Not complete yet-needs a callback. Also tested mobileMakePurchase for Samsung
Added local inventory of ownedItems and knownItems
Added mobileReceiveProductDetails command. Tested for Amazon and Google
Added mapResponseCode() method for Amazon/Samsung
Setting payload data on makePurchase function (Google)
added mobileMakePurchase(prodId, quantity, payload), mobileConfirmPurchase(prodId), mobileGetPurchaseProperty(prodId, propName) for iOS. Not tested yet
Fixed errors to compile engine-mobile. Tested some livecode ios commands
Tested (not fully) mobileGetPurchaseProperty in iOS
Fixed problem of returning always the nonconsumable prodID
Added productDetailsReceived callback. Tested for Google