onepf / OpenIAB

Open In-App Billing for Google Play, SlideMe, Amazon Store, Nokia Store, Samsung Apps, Yandex.Store, Appland, Aptoide, AppMall and Fortumo.
http://onepf.org/openiab/
Apache License 2.0
476 stars 171 forks source link

inventory.getSkuDetails("sku_name").getPrice() returns null in Amazon shop #414

Closed shurikb1 closed 9 years ago

shurikb1 commented 9 years ago

Hi! Like the title already says, getting the price in onQueryInventoryFinished returns null. inventory.getSkuDetails("sku_name").getPurchase() returns false. Also i checked if getSkuDetails() == null and it returns true. So how can getPurchase() return not null and what could be the cause for skuDetails being null?

RomanZhilich commented 9 years ago

Are you sure you've supplied true as querySkuDetails parameter for queryInventory() method? Documentation states:

 @param querySkuDetails if true, SKU details (price, description, etc) will be queried as well as purchase information.
shurikb1 commented 9 years ago

Yes, i use queryInventoryAsync(true, skuList, mListener). Also i use the code with google play and everything works fine - from queryng to purchasing. I'm currently going through logs and here are some that have cought my attention: "Cannot find amazon authenticator. If this is 1P device, this is a bug!" "IAP Event: IapDiscoveryRequestSuccess" "IapEvent: IapCommandGetItemSuccess"

RomanZhilich commented 9 years ago

How are you testing you purchases? I've just tried it with Amazon SDK tester and it seems to be working fine... Did you check out this tutorial?

shurikb1 commented 9 years ago

I'm testing with Live App Testing. So i have to use Amazon SDK Tester to get it to work?

RomanZhilich commented 9 years ago

I haven't tried it with live, but we have users who claim it work fine with their apps. Please try it with SDK Tester, it shouldn't be too hard, and it'll help to localize your problem.

shurikb1 commented 9 years ago

Alright, it was my bad. My in-app items were not submitted. Just creating them is not enough as it seems, you have to fill in a lot of redundant information and finally submit every in-app item separately. Sorry to have wasted your time, i guess the issue can be closed.

RomanZhilich commented 9 years ago

Grad it worked out.