the item you requested is not available for purchase

前端 未结 17 1186
陌清茗
陌清茗 2020-11-28 20:19

I\'m trying to integrate Android Market in-app purchases into my app, but unfortunately coming across an annoying error every time I try to purchase a real inapp product.

相关标签:
17条回答
  • 2020-11-28 20:52

    I have faced with the same issue , The solution for me was uploading the current version of your app to the play store , If it is for testing then upload it to the Alpha or the Beta channel , I have done this and the error is gone and the pricing details is shown correctly ..

    0 讨论(0)
  • 2020-11-28 20:54

    Here are some things to check:

    1. You've created an apk and you've published it to the GooglePlay Dashboard in Alpha or Beta.
    2. The app in the GooglePlay Dashboard is NOT in Draft mode, but in Published (you'll need to make all the small circles with the check icon in them on the left side of the screen green before being able to publish).
    3. You've set another test account than the one that's "attached" to the GooglePlay Dashboard. You can do that by creating a Google+ group, add your test account to that group and specify the Google+ group in the GooglePlay Dashboard.
    4. The apk that you're using to test the purchase has the same version code, version name, and most importantly it's signed with the same keystore as the apk that you've published in the store.
    5. You wait a couple of hours between when you change something in the dashboard in order for the changes to propagate. It takes a couple of hours to do so.
    6. Make sure the sku value is a valid sku value (compare it with the one you've entered in the GP Dashboard).
    7. You try to purchase an already purchased item. Get the purchased items and display them in the log to see if so. If so, then consume that product or refund the money to your test account(you'll need to wait for the refund to propagate. It takes a couple of hours.)
    8. Make sure the Inapps are Active !

    What did it for me, after 6 hours, was this last part:

    1. Make sure you're signedIn into google (in your browser) with the test account and you open this link (marked with the red) and you approve to become a tester !!!! http://i.stack.imgur.com/VSgAV.png

    UPDATE

    1. If you're using flavors to build apks targeting different CPUs and you build for arm, armv7 and x86 and you upload them all to the store, remember to use one of them to test the inapps. If you use a "universal" build which contains all the cpu libraries (basically another build than what's on the store) it won't work.
    0 讨论(0)
  • 2020-11-28 20:54

    This error comes when everything you done is perfect, you have used signed APK with the proper product id, but you have to note that the account that you are using might don't have proper valid credit card details.

    So whenever you want to buy any product even with test account, that account should have valid credit details.

    0 讨论(0)
  • 2020-11-28 20:54

    In order to solve this problem, follow these steps:

    1. Create the product on Google play developer console.

    2. Save and set it to "Active".

    3. Upload the APK to Google play.

    N.B. The in-app billing may not work until after 6 hours of creating your product in step 1.

    0 讨论(0)
  • 2020-11-28 20:57

    you must accept to become tester

    Release management -> app releases -> manage tester then open this link(Opt-in URL) with incognito mode to login tester account

    0 讨论(0)
提交回复
热议问题