Why does Google in-app billing return the correct orderId in case of a test purchase?

Google states that you will receive an empty order if the purchase is a test purchase. But we get the correct orderId, so the question is how to check whether the purchase is a purchase or not. And why do you get orderId?

+6
source share
2 answers

I assume that you are checking the json response, not the Google Play email newsletter, which includes the order number.

The JSON response should not include orderId if it was a test purchase. This has been confirmed several times. Make sure that the account you use to verify the purchase is included in the license verification accounts in the Google Play Developer Console> Application Settings> Account Information, and then in the "License Testing" section.

Check here

When your billing implementation in the application is ready, you can check the purchase of your SKUs in the application in two ways:

Test purchases that allow selected users to check the licenses of your products in the application without any user fees. Checkout purchases can only be used in alpha beta versions.

Real purchases that allow ordinary users to make real purchases of your products in the application with actual costs for users' payment instruments.

0
source

The problem is resolved on its own, I really did nothing, but after I started getting an empty orderId.

0
source

All Articles