Simon B.
Simon B.

Reputation: 2706

How to check if an Android in-app purchase is a test or regular purchase?

Is there a way to programmatically check if a purchase is a test purchase or a regular one?

When you attempt a test purchase, Google notifies you that this is a test purchase and that you will not be charged for it. Is there a way to get that information in code?

Upvotes: 1

Views: 340

Answers (1)

Cem Catikkas
Cem Catikkas

Reputation: 96

I tried it too much, unfortunately there is no way to get this information from Google on an Android application for now. If you are doing regular purchase with a tester account, all responses you got from Google apis are same with a non tester account. So it is impossible to differentiate it.

Upvotes: 1

Related Questions