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
0
Question by skywaltzlabs.shikhar · Oct 26, 2015 at 12:29 PM · androidunity 5prime31in app purchasegoogle-play-store

Restore IAP in Android using Prime 31

can someone please guide me how to restore purchases in android using prime 31.

What my basic understating is to get the list skus which player has purchased after he logs in with his account and restore them accordingly.

What I am not getting is how to get that list.

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
1

Answer by shivanshu · Oct 27, 2015 at 09:35 AM

call "GoogleIAB.queryInventory( skus );"//var skus=your IAP keys and in "queryInventorySucceededEvent" check the purchased non-consumable products as

foreach (GooglePurchase purchase in arg1){//where arg1 is first parameter of method //"queryInventorySucceededEvent" debug.Log(purchase); }

please tick right if its working for you.

Comment
Add comment · Show 3 · 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 siddharth3322 · Oct 04, 2016 at 02:00 PM 0
Share

@shivanshu for this you given good idea. Thanks for this :) Its working on my end.

avatar image ajaybhojani siddharth3322 · Jan 27, 2017 at 05:41 AM 0
Share

Hi, Here are my development flow of in app.

I am using unity5.4.0f3 unity personnel version.

openIAB plugin version is 0.9.8.6.

In ios working O$$anonymous$$. Getting problem with restore purchase in android.

Testing account is added in test account in alpha test in google play developer console.

App installing with the same account in android device which is added in google play console.

Android manifest file version is O$$anonymous$$ and also BILLING activity added, checked and tested

Purchasing test order say "You will not charge for test account" etc, and successfully purchasing app. Setting preference But,

When uninstalling app and reinstalling again with same account,

Calling private void OnBillingSupported() { Debug.Log("Billing is supported"); OpenIAB.queryInventory(new string[] {"premium_version_no_ads" }); }

Also getting response -private void OnQueryInventorySucceeded(Inventory inventory) { if (inventory.HasPurchase ("premium_version_no_ads")) { } }

But not getting any previous purchase detail using GETPURCHASE AND HASPURCHASE functions,

just getting inventory object response null.

Please help How to restore purchase in android ?

Thank you.

avatar image Narsis_205 · Jan 06, 2017 at 05:00 PM 0
Share

can you be more specific ??? there is purchase count log, and if purchase count>0 then iI need to check what 's been purchased comparing my store in app item id, how to do that ???

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

6 People are following this question.

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

Related Questions

Firebase Invites System.AggregateException 0 Answers

UnityIAP not restoring purchases on Android 1 Answer

Prime 31 In App Billing Android 1 Answer

Prime[31] Android In App Billing - Product is owned when receipt is not valid or fails to verify 0 Answers

How to detect if the Device can run the shader ? 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