I am trying to verify whether product is purchased or not from store.
For that I have used the below code :
mHelper.queryInventoryAsync(mGotInventoryListener);
And call back is as mentioned below :
IabHelper.QueryInventoryFinishedListener mGotInventoryListener = new IabHelper.QueryInventoryFinishedListener() {
public void onQueryInventoryFinished(IabResult result, Inventory inventory) {
Log.d(TAG, "Query inventory finished.");
// Have we been disposed of in the meantime? If so, quit.
if (mHelper == null) return;
// Is it a failure?
**if (result.isFailure()) { // This fails in our case**
complain("Failed to query inventory: " + result);
return;
}
}
};
But every time I am getting same error as shown in below attached screen.
I have tried with below mentioned steps but failed to get success.
- "base64EncodedPublicKey" verified from our google play account where app is launched in alpha testing mode
- Application is signed with release keystore
- "base64EncodedPublicKey" - copied to notepad first and then copy to java file (read somewhere in blogs for this solution) , but that has not work for me.
Can anybody suggest for the same. Please let me know if I need to add something in order to solve this issue?