I'm using AndroidBillingLibrary to implement in-app purchases for my game.
I've done the following:
Now with the test account I start my game and try to make a in-app purchase. I get the market screen and I can see the item details (so market does recognize the item id because those details are only in the market, not in my game) but then I get a pop up that says "The item you were attempting to purchase could not be found." and I'm returned to my game.
Now this page tells me that "Also, a test account can purchase an item in your product list only if the item is published. The application does not need to be published, but the item does need to be published."
but Market console tells me:
"An in-app product will appear UNPUBLISHED until the owning application is PUBLISHED, at which point the in-app product's publishing state applies."
So I can't change in-app items to published before publishing my game (which I don't want to do yet).
How can I test buying in-app items without publishing my game?
You need to give public key (base64EncodedPublicKey) in Your security class which must be same as you given in your developer account..Also you have to publish your product even if the app is not yet published(that is saved as draft application)..
You need to use signed apk.
Then make your test from a non developer account.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With