Android subscription testing: item not found

I am trying to test new subscriptions on Google Play, but the service returns "Item not found".

I used the identifier "android.test.purchased" for testing. With this identifier, I can perfectly test a regular product in the application, but it does not work when subscribed.

In the Google Play console, I added a subscription and published.

Do I have to use a real subscription identifier and pay for testing?

thanks

+4
source share
3 answers

Even I was looking for this and I think that you may have already solved your problem. But this can help others. Even I could not find any documentation on testing products for subscription, however Testing billing in the application involves using only 4 reserved static product identifiers.This makes me conclude that there is no test identifier for subscribing.

Hope this helps

+2
source

Yes, you will have to use a real subscription and pay (you can cancel later). no subscription test. note that you will have to send an api version = 2 request, and the product type must be "subs".

+2
source

Google Play has already implemented a sandbox for testing subscriptions and purchases. You must publish your application in beta and a few hours after test users (added to the Google Play Developer Console) can make test purchases (they are not charged) in your application. They can even make purchases by subscription. A test subscription is automatically renewed every day (until it is canceled from Google Play), regardless of the duration of the subscription. Please note that the test user (Google account) must have a valid credit card added to the Google Wallet account in order to make trial purchases (which are not charged). When making a purchase, the purchase confirmation dialog clearly states that this is a test purchase and you won’t pay.

+1
source

All Articles