How can I pay for another account of the same device in INP APP PURCHASE android

In fact, two gmail accounts are registered on my device ( firstaccount@gmail.com , secondaccount@gmail.com ). Now that I have entered the application and clicked on the button to pay. In APP PURCHASE, a pop-up window appears (which is shown in the image) for firstaccount@gmail.com and completed the payment procedure, after which I left my installed application and tried to reinstall with another account and at one time I want to pay from my device secondaccount@gmail.com , but I can’t. And errors occur (Error code: 7) the product is already buying. since I can change the account for payment during the application.

In both cases, I receive the same email for payment

Thanks in advance.

+5
source share
2 answers

Steps to play: 1. Uninstall the application with which you made a purchase. 2. Add a second Google account to the device. 3. Open Google Play and switch to the new Google account. 4. Download the application that you removed in step 1. 5. Open the application and request a purchase. No previous purchase reported.

Fix A (only works if the account used to make the purchase is the "main" account on the device): 1. Clear the data from the Google Play Store application. 2. Open the Google Play Store and accept the terms. 3. Open the application and request for purchases. Reported previous purchase.

Fix B: 1. Uninstall the application. 2. Open Google Play and switch to the account used to make the purchase. 3. Download the application that you removed in step 1. 4. Open the application and the purchase request. Reported previous purchase.

0
source

In the section "Purchase and subscription" there is an option "Payload" of the developer.

This developer option is used to store your purchase information, where you can store your unique purchase data. (For example, purchased registered email id for your application)

Thus, whenever another user logs in to your application, you can get purchase information with a developer payload. Thus, the obtained payload data of the developer corresponds to the login user, if so, then this is the same user login that was otherwise acquired by another user.

There is one drawback: another user login cannot purchase the same item if it purchased the same account.

This method is useful if you bought the one that you used to buy this item, but if any other user can also enter it on this device, but it should not use this item if it was not purchased for it.

This can also be controlled by the API.

0
source

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


All Articles