When I tried to purchase a product with the in-app purchase I am receiving an error as mentioned below instead of in-app purchase dialog
This version of the application is not configured for billing through Google Play
Yes, there are lots of answers available online but they all suggested adding this particular user as a licensed tester, I am facing this issue in the live application and I can not add a user as a licensed tester.
I also find a workaround for this issue as mentioned below,
Yes, adding a new google account fix the issue but my question is why this is not working with my existing google account?
The issue has been fixed 🎉
The live build did not contain the permission com.android.vending.BILLING
What I was doing wrong is, I added this permission to the build and was testing in debug mode and not from the internal testing of the google play console.
After adding this permission I uploaded the build to internal testing and download the app from there on my real device and everything worked as expected.
Still, the confusing point is in some android device billing works without the above-mentioned permission 🤔