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?
Comments
Post a Comment