in app purchase - android: google play promotion code for inapp billing -


i have used promotioncode buy in-app product during tests of app in-app product purchase flow.

although promotion code detected, application cannot detect purchased. this: inside implementation of iabhelper.queryinventoryfinishedlistener have method:

@override public void onqueryinventoryfinished(iabresult result, inventory inventory) {     ...     ...     purchase activationpurchase = inventory.getpurchase(sku_activation);     boolean activated = (activationpurchase != null && verifydeveloperpayload(activationpurchase)); } 

however activationpurchase read google play this: purchaseinfo(type:inapp): { "packagename":"my.package.name", "productid":"activation", "purchasetime":1471991353652, "purchasestate":0, "purchasetoken":"a-real-token" }

and see in picture application watch, developer payload shown empty string "", purchase not validated , purchasestate 0. question how can detect product bought using redeem code? enter image description here


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -