appcelerator-archive / ti.inappbilling

Other
25 stars 32 forks source link

inventory.getDetails doesn't seem to work so I can read price. #26

Open kgividen opened 7 years ago

kgividen commented 7 years ago

Everything seems to be working ok for me except I can't get the details of the inventory. I'd liek this so I can dynamically display the price from the inventory instead of hardcoding it.

On the queryInventoryComplete function this just produces a null instead of the expected details object.

var queryInventoryComplete = function(e) {
var inventory = e.inventory;
Ti.API.info("inventory.getDetails(purchaseIds[0]):" + JSON.stringify(inventory.getDetails(BlahID.com)));
}

Otherwise, things seem to work as far as purchases go...

martesabt commented 5 years ago

Everything seems to be working ok for me except I can't get the details of the inventory. I'd liek this so I can dynamically display the price from the inventory instead of hardcoding it.

On the queryInventoryComplete function this just produces a null instead of the expected details object.

var queryInventoryComplete = function(e) {
var inventory = e.inventory;
Ti.API.info("inventory.getDetails(purchaseIds[0]):" + JSON.stringify(inventory.getDetails(BlahID.com)));
}

Otherwise, things seem to work as far as purchases go...

Did you finally got it? I have the same problem :/