Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by MikeyPB · Sep 30, 2018 at 07:49 AM · in app purchasegoogle-play-store

Codeless IAP Button not finding product ID

Hi all,

I have been trying to set up a consumable IAP purchase with Google Play using the Codeless IAP feature. I have set up a product in the IAP Catalog in Unity and given it an ID. I have made an IAP Button and given it this product ID from the generated list.

I have connected to Google Play and created a managed product with the same ID. The product says it is 'Active' in the Google Play Console.

I have published the app to an internal testing track and downloaded the app through the opt in URL. I downloaded to my phone through the Google Play Store.

The IAP button appears to respond to the tap but I don't see anything appear related to the IAP. I get this log from adb:

 09-29 13:16:23.414  5174  5191 I Unity   : IAPButton.PurchaseProduct() with product ID:
 09-29 13:16:23.414  5174  5191 I Unity   :
 09-29 13:16:23.414  5174  5191 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
 09-29 13:16:23.414  5174  5191 I Unity   :
 09-29 13:16:23.414  5174  5191 W Unity   : Unable to purchase unknown product with id: {0}:
 09-29 13:16:23.414  5174  5191 W Unity   :
 09-29 13:16:23.414  5174  5191 W Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
 09-29 13:16:23.414  5174  5191 W Unity   :
 09-29 13:16:23.414  5174  5191 I Unity   : Trying to purchase null Product
 09-29 13:16:23.414  5174  5191 I Unity   :
 09-29 13:16:23.414  5174  5191 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
 09-29 13:16:23.414  5174  5191 I Unity   :

Reading the logs, it seems the product ID is missing, but as far as I can tell, my IAP button is set up correctly, with the ID from the product catalog selected. I feel like there must be something very obvious I'm missing - why would my product ID not be being found?

The purchase "works" in the unity editor test environment: my success callback is called.

I'm using my developer account to test - as of a few days ago this is now a valid test account on Google Play.

Thanks for reading, please let me know if you need any more info!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by MikeyPB · Sep 30, 2018 at 06:41 PM

Hi all, I solved the problem - hope this helps somebody.

Whilst trying to solve this problem I updated unity. This issue was apparent in 2017.3 and it remained in 2018.2

However, reimporting all assets in 2018.2 solved the problem. This is in addition to the automatic reimport that happens when loading the new version for the first time: I had to manually trigger the reimport in Unity.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

150 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Privacy policy for google play 1 Answer

Retrieving a list of available in app products from google store 0 Answers

Unity's IAP Security alert google play 0 Answers

Mark in app product as obtained 0 Answers

Google Mobile Ads cause Failed to build apk error 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges