Search code examples
androidgoogle-playandroid-billing

App In Billing: Alpha Test - After bought item, is possible to check if item is purchased? In Aplha test mode


My in app billing is working normal with my tests.

But using my item SKU and after a success purchase on ALPHA test mode seems that my check if the item was purchased is not working.

Someone knows if the check if an item was purchased works on APLHA tests? Because seems to me that the purchase is fake on ALPHA test and is not being registered.

Thanks!


Solution

  • It works the same way in alpha and beta versions. It must be a problem somewhere in your code. I suggest to check this doc: Testing In-app Billing

    You can also utilize static IDs for testing IAP, i.e:

    android.test.purchased

    When you make an In-app Billing request with this product ID, Google Play responds as though you successfully purchased an item. The response includes a JSON string, which contains fake purchase information (for example, a fake order ID). In some cases, the JSON string is signed and the response includes the signature so you can test your signature verification implementation using these responses.