I have a problem buying subsection items with the new InAppBilling V3
Here is my IABHelper handleActivityResult method:
public boolean handleActivityResult(int requestCode, int resultCode, Intent data) { IabResult result; if (requestCode != mRequestCode) return false; checkSetupDone("handleActivityResult"); // end of async purchase operation flagEndAsync(); if (data == null) { Log.e(TAG + "Null data in IAB activity result."); result = new IabResult(IABHELPER_BAD_RESPONSE, "Null data in IAB result"); if (mPurchaseListener != null) mPurchaseListener.onIabPurchaseFinished(result, null); return true; } int responseCode = getResponseCodeFromIntent(data); String purchaseData = data.getStringExtra(RESPONSE_INAPP_PURCHASE_DATA); String dataSignature = data.getStringExtra(RESPONSE_INAPP_SIGNATURE);\ ...
purchaseData and dataSignature are null after this code, and as a result, the purchase stream cannot be completed.
When I try to purchase products in the app, everything works well. buyData and dataSignature are not null.
This guy seemed to have the same problem:
Google Play In-App Purchase returns error code -1008: null puchaseData or dataSignature
but this does not work for me, I still get null for both fields.
What am I doing wrong? thanks in advance!
source share