I am getting the following from the Google Play IAB API;
The item you requested is not available for purchase
I have however successfully tested against static responses, and in addition, the following code returns myProductId
in the list of available products;
ArrayList<String> skuList = new ArrayList<String> ();
skuList.add("myProductId");
Bundle querySkus = new Bundle();
querySkus.putStringArrayList("ITEM_ID_LIST", skuList);
Bundle skuDetails = service.getSkuDetails(3, activity.getPackageName(), "inapp", querySkus);
In addition I have;
- Published a beta APK
- Added a test user to the beta and opted in via the URL
- Logged on the device with the test user (gmail account)
- Pushed a signed APK with the same versioncode to the device
- Activated the product
The purchasing code I am using is;
Bundle buyIntentBundle = service.getBuyIntent(3, activity.getPackageName(), "myProductId", "inapp", "payload");
PendingIntent pendingIntent = buyIntentBundle.getParcelable("BUY_INTENT");
activity.startIntentSenderForResult(pendingIntent.getIntentSender(), 1001, new Intent(), Integer.valueOf(0), Integer.valueOf(0), Integer.valueOf(0));
Finally, logcat shows the following;
D/Finsky: [1] PurchaseFragment.onStateChange: Error: PurchaseError{type=3 subtype=0}
D/Finsky: [1] PurchaseFragment.onStateChange: Purchase failed: PurchaseError{type=3 subtype=0}
Whilst there are other questions related to this issue, none of them solve it for me;
- the item you requested is not available for purchase
- Product is active
- The item you have requested is not available for purchase
- Testing with Static Responses is successful for product
android.test.purchased
- Testing with Static Responses is successful for product
- Android In App Purchase “Item that you have requested is not available for purchase” Error
- Test user logged in
developerPayload
: The developerPayload String is used to specify any additional arguments that you want Google Play to send back along with the purchase information. – Ashtonashtonunderlyne