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 amoswazana · Nov 27, 2017 at 08:40 AM · androidiappurchase

Unity IAP non-consumable product does not go to ProcessPurchase

The issue I'm facing is as follows:

After purchasing a non-consumable product successfully and restarting my app I do not receive a callback to the ProcessPurchase function (same as in the Unity IAP demo).

After looking in the logcat I can see that the purchase is processed correctly, according to the following log:

 11-26 11:38:16.859 23156 23383 I UnityIAP: Querying owned items, item type: inapp
 11-26 11:38:16.859 23156 23383 I UnityIAP: Package name: [PRODUCT_NAME]
 11-26 11:38:16.859 23156 23383 I UnityIAP: Calling getPurchases with continuation token: null
 11-26 11:38:16.859 11442 11453 I Finsky  : [204489] com.google.android.finsky.billing.iab.w.b(29): [PRODUCT_NAME]: Account determined from installer data - [XXXXXXXX]
 11-26 11:38:16.859 23156 23383 I UnityIAP: Owned items response: 0
 11-26 11:38:16.859 23156 23383 I UnityIAP: Sku is owned: [PRODUCT_NAME].nonconsumable.removeads
 11-26 11:38:16.859 23156 23383 I UnityIAP: Continuation token: null
 11-26 11:38:16.859 23156 23383 I UnityIAP: Querying SKU details.
 11-26 11:38:16.859 11442 11452 I Finsky  : [204488] com.google.android.finsky.billing.iab.w.b(29): [PRODUCT_NAME]: Account determined from installer data - [XXXXXXXX]
 

How come I own a specific non-consumable SKU but I do not receive the callbacks to my ProcessPurchase function? I'm obviously missing something here... In addition, why do I get a "Owned items response: 0" when the next line is detailing the specific SKU that I do own.

Any help will be much appreciated!

UPDATE: I uninstalled the app for an unrelated test and then when I reinstalled and ran the app the ProcessPurchase function was called. However, this only happens for the first time I run the app after reinstall.

(sorry for bad formatting, can't seem to get it right...) link to stackoverflow question

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

0 Replies

· Add your reply
  • Sort: 

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

154 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 avatar image avatar image avatar image avatar image

Related Questions

Unity IAP doesn't work on Android 0 Answers

IAP Restore purchase on Android "Already Recorded Transaction" 0 Answers

How to use Google play billing library 3? 0 Answers

Codeless IAP not working 1 Answer

Unity In app purchases - non-consumable Duplicate Transaction on Android 1 Answer


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