In-app billing testing

I read a lot about billing and testing applications, but I still have not found the answer to a few questions:

How can I check real purchases in a draft (unpublished) version of the app? It is necessary to publish products / elements => application. Is there a way to publish items without publishing the application?

The whole testing process is rather unfriendly to developers, ashamed of Google :(

I have successfully tested my application with test static answers, now I need to test it on real elements without publishing the application. The only way I can think of now is to publish the application, for example. Kenya, post items, test and then post the app.

Any ideas would be greatly appreciated. Thanks.

+6
source share
3 answers

So, I think I get it. All I had to do was publish the application and then cancel the publication . After that, I was able to publish articles and check real cross-cutting purchases on these items. Very intuitive and convenient for developers :)

+1
source

No, it will be like selling things (your items) in which you do not have a license to sell. (For example, you need a pharmacy to sell drugs.)

I am sure that the people who wrote this article should have considered your use case. From the article:

You do not need to publish your application to complete end-to-end testing. You only need to download the application as a draft application to perform end-to-end testing.

Also I read here here :

The publish status of an item may or may not be published. In order to be visible to the user during the verification, the publication status of the element must be set, and the application application must be published on the Android Market ..

Note This is not true for test accounts. The item is displayed in the test account if the application is not published and the item is published. See the Testing billing section in the app for more information.

0
source

Products are published immediately after the publication of the application. And your application should not be published for real tests, just download it as a β€œdraft”. The application must be signed.

The whole testing process is rather unfriendly to developers, ashamed of Google :(

Fortunately, there are libraries that can help with testing, such as billing for Android testing . This library is an In-App billing implementation for an emulator that has been tested in the Horer horaires de RER application.

0
source

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


All Articles