Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 TatersGonnaT8 · Jul 25, 2020 at 06:37 PM · iosiapin-app-purchase

Codeless IAP: PurchaseFailureReason.Unknown for iOS

I am using Codeless IAP. On Android, Codeless IAP is working fine with our Beta deployment. On iOS, I keep getting the error "PurchaseFailureReason.Unknown". In the logs I'm seeing the following error code:

"UnityIAP: PurchaseFailed: 0"

Seeing this behavior both in the Sandbox environment and with TestFlight.

I've already completed the following steps:

  1. Added all products in AppStoreConnect, and verified that all products are listed as "Ready to Submit"

  2. Accepted the "Paid Apps" agreement in App Store Connect

  3. Filled out all the Tax/Banking info in App Store Connect

  4. Using "Automatically manage signing" within Xcode. I added "In-App Purchase" in the "Capabilities" section

  5. Validated that IAP initialization is not throwing errors. I'm seeing "UnityIAP: Received 4 products" in the logs, which makes it seem like IAP is initializing fine.

In both Sandbox and TestFlight, I am seeing the behavior where I get the "Confirm Your In-App Purchase" prompt. I type in the appropriate password, and then I get the same password prompt again. After I type in the password a second time, then I see the "Done" message with a checkmark within the prompt, but I then get the "PurchaseFailureReason.Unknown" message inside the "OnPurchaseFailed" handler.

Any ideas what I might be missing?

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 TatersGonnaT8 · Jul 31, 2020 at 05:14 PM

Ok so I think I've figured out the issue here. Once all of the above steps are completed, you also have to add the in-app purchases to the actual (non-TestFlight) version of the build in AppStoreConnect.

  • Go to AppStoreConnect, go to the main "App Store" tab, and click on your app version under "iOS App" that most likely says "Prepare for Submission"

  • Scroll down to the "In-App Purchases" section

  • Add all of the applicable In-App purchases that you're trying to test.

Once I finished those steps, then I was able to successfully test the IAPs on iOS. Very confusing that we need to add the IAPs for the PROD build even though we're just testing on TestFlight!

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

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

Related Questions

In iOS, IAP With Sandbox User Works But It Fails With Non-Sandbox Users 0 Answers

The IAP service currently disabled - Unity Bug 3 Answers

Restore IAP in IOS unity 5.3 1 Answer

unity3d google play error [DF-RPC-01] 1 Answer

About error when billing with Unity IAP in ios environment 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