Testing Unwanted IAP Elements on Google Play

I am using Google Play IABv3 and want to be able to easily check what I am doing (not surprisingly). Starting with IABv3, all items are managed and consume items that he considers supplies to the application.

I'm not sure what the expected workflow is when testing non-consumable products. To be able to test the purchase process several times, you need to delete the previous purchase. However, the purchase is designed to not be consumed, so we obviously do not want to add any code that consumes it (since it can accidentally slip through and delete the purchases of real users).

I would like some way to clear the test user’s account from purchases, which I doubt is possible, since there are no “real” test users.

What is the suggested way to do this?

0
source share
1 answer

Instead of real items, you can use test product identifiers. Remember to use it only in debug builds.

https://developer.android.com/google/play/billing/billing_testing.html

android.test.purchased

, Google Play , . JSON, (, ). JSON , , .

android.test.canceled

In-app Google Play . , , .

android.test.refunded

In-app , Google Play , . Google Play. (). Google Google Play. Google Play Google , . . IN_APP_NOTIFY In-app Billing Pricing.

android.test.item_unavailable

In-app , Google Play , .

+1

Source: https://habr.com/ru/post/1569355/


All Articles