Is there any example available on how to use RESTORE_TRANSACTIONS request to restore an In-app product purchase information? I came up with this code, but it always returns 0, so it doesn’t recognize if the product is purchased or not: Everything is set up correctly.
Bundle request = BillingHelper.makeRequestBundle("RESTORE_TRANSACTIONS");
request.putLong("NONCE", 32436756l);
try
{
Bundle response = BillingHelper.mService.sendBillingRequest(request);
int response_code = response.getInt("RESPONSE_CODE", -1);
if (response_code == 0)
{
// Product purchased
}
}
catch (RemoteException e)
{
e.printStackTrace();
}
I found no examples on google and in the documentation, so any guidance would be great.
I used this method:
, The call is as follows: