0

I'm working on in-app purchases in my game. Currently I'm verifying the transaction whether it's test or real transaction with the signature getting from google. This is not checking my test transaction. I couldn't find the difference between real one and test one. Is there any other way to get it done?

The Keeper
  • 429
  • 7
  • 16

2 Answers2

0

Help on testing billing is here. That page describes the different ways of testing. Many of the test purchases are intentionally the same as real purchases to make your tests properly realistic.

You shouldn't rely on the app itself to distinguish test and real purchases. But you could look at the product id for the simple case.

Nick Fortescue
  • 13,530
  • 1
  • 31
  • 37
0

If you are looking to find whether the subscription is purchased by a genuine customer or a license test account, you can get that data from the Google Purchases.subscriptions API for more details refer my answer.

Kishan Vaishnav
  • 2,273
  • 1
  • 17
  • 45