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 /
avatar image
1
Question by Bui Thanh · Jan 18, 2016 at 10:01 AM · in app purchase

no product available in app purchaser unity 5.3.1f1 ?

I am testing its products with the print function of unity Purchaser 5.3 app, but build on a device when it encountered this error "no product available" in function UnityPurchasing.Initialize, someone can help me fix this error does not, thanks a lot

Comment
Add comment · Show 1
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
avatar image zero_null · Feb 24, 2016 at 02:56 PM 0
Share

I am in the same issue! you figured it out ? how to do this?

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Nihil688 · Feb 06, 2016 at 02:32 PM

Hey that's because their documentation is 100% wrong,

don't use: public Purchasing.ConfigurationBuilder AddProduct(string id, Purchasing.ProductType type, Purchasing.IDs storeIDs);

as id is not store independent as they say...

Comment
Add comment · Show 4 · 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
avatar image Dongun Kang · Feb 24, 2016 at 08:42 AM 0
Share

How can I add products And Initialize ?

avatar image reinaldozhang · Mar 02, 2016 at 08:58 AM 0
Share

Well, mate. Can you show us the way of doing it? @Nihil688 .Thanks a lot.

avatar image Nihil688 · Mar 02, 2016 at 09:13 AM 0
Share

@reinaldozhang use the other method available in the api: public Purchasing.ConfigurationBuilder AddProduct(string id, Purchasing.ProductType type); since the id isnt independent, you use the method that requires it to be dependant

avatar image Nairda_Draziw · Nov 20, 2019 at 08:32 PM 0
Share

Using

 ConfigurationBuilder.AddProduct(IAP_STORE_ID, ProductType.NonConsumable);

ins$$anonymous$$d of

 ConfigurationBuilder.AddProduct(IAP_STORE_ID, ProductType.NonConsumable, new IDs
 {
      {IAP_STORE_ID, GooglePlay.Name}
 });

Worked for me. Thank you.

avatar image
1

Answer by mohammed29 · Apr 25, 2016 at 04:30 AM

I had this problem and finally i fixed it :)

Just you need to follow the Docs : http://docs.unity3d.com/Manual/UnityIAPGoogleConfiguration.html

Anyway, I will give you the direct answer >>

This error occurs because you didn't publish your app , therefore you need the following..

  1. Go to Developer Console and make an Alpha version of your app. don't forget to Add Testers to your alpha. (add yourself at least)

  2. Press Publish Button in order to publish the Alpha .

  3. Copy the (testers download link) you will provided (bottom of the page) and paste it in your mobile browser.

  4. After open the link in mobile browser, You will redirect to Play Store and you can download your own app now, (you should download it directly from the store in order to make (in-app Purchases work)

And your code should be work correctly without errors :)

This is how i initialize IAP :

 ConfigurationBuilder builder = ConfigurationBuilder.Instance(StandardPurchasingModule.Instance());
     
 builder.AddProduct("[id]", ProductType.Consumable);
 builder.Configure<IGooglePlayConfiguration>().SetPublicKey("[public key- you can find it out from Services/API tab in developer console]");
 
 UnityPurchasing.Initialize(this, builder);





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

10 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

Related Questions

Can't understand OpenIAB skus 0 Answers

ingameshop tutorial c# 1 Answer

i need a script to remove ads by with an in app purchase subscrition 0 Answers

Can't import IAP store package 0 Answers

How to handle IAP refund in iOS? 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