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 kendogar · Nov 17, 2016 at 02:08 PM · inapp purchase

Setting up UnityIAP for iOS - I'm totally stuck

Hey there,

I've built a game for android and iOS which is just about to be finished, the only thing left is iOS in app purchases. Android works perfectly fine, but I can't seem to get it to work on iOS.

I'm using a modified version of the unity iap script from the docs which works fine for android, but somehow not for iOS. Here is my initialization:

 public void InitiateController()
     {  
         var module = StandardPurchasingModule.Instance();
         ConfigurationBuilder builder = ConfigurationBuilder.Instance(module);
         foreach (CatalogItem item in buyableItems)
             builder.AddProduct(item.ItemId, ProductType.Consumable);
 
         UnityPurchasing.Initialize(this, builder);
 
         validator = new CrossPlatformValidator(GooglePlayTangle.Data(), AppleTangle.Data(), Application.bundleIdentifier);
     }

The IDs im adding to the builder are correct product ids as I use them in iTunes Connect, I have verified that using Debug commands.

Initialization fails because it can't find the products.

Nov 17 15:00:11 [303] : UnityIAP:Requesting 6 products Nov 17 15:00:11 [303] : UnityIAP:Requesting product data... Nov 17 15:00:12 [303] : UnityIAP:Received 0 products

I have no idea what is missing. I set up all the 6 products in iTunes Connect as consumables, only missing is the screenshot and the submit of course. I've added a sandbox user to be able to test them, but I ain't even receiving them.

Anyone able to tell me what could be wrong?

Comment
Add comment · Show 2
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 hexagonius · Nov 18, 2016 at 12:48 AM 0
Share

I've had a quick look and found this forum entry:
https://forum.unity3d.com/threads/iap-unavailable-product-issue.374734/

two questions:
- did any of the consumables need verification by Apple? - if not, did you run the game in Release configuration? (happened to me a lot due to all the debugging)

avatar image kendogar hexagonius · Nov 18, 2016 at 06:04 AM 0
Share

Hello and thanks for your reply,

as far as I can tell all those consumables need verification, right? But shouldn't I be able to test them with a sandbox account without them being verified, as that needs an app review? See this screenshot:

[1]: /storage/temp/82374-inapppurchases.jpg

Abd yes, I'm running in release configuration.

inapppurchases.jpg (42.8 kB)

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by kendogar · Nov 18, 2016 at 05:17 PM

Alright, I've found my problem.

Since my game is going to be free to play with in app purchases, I had reasons to believe I need a "Free Applications" contract in iTunes Connect. Apparently free-to-play with in app purchases counts as "Paid Applications" for Apple, after requesting the "Paid Applications" contract everything worked fine.

At this point I've gotta thank apple for making the whole app development and release process that much more unnecessarily complicated than it has to be. Just take a look at how google's done it and copy some of it, jesus...

Anyway, if any of you ever encounter the same problem, check that you have a "Paid Applications" contract under "Agreements, Tax, and Banking" including full banking information.

Cheers

Comment
Add comment · Show 1 · 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 c301 · Jun 09, 2017 at 02:03 PM 0
Share

Thanks man!

avatar image
0

Answer by bigboer · May 11, 2020 at 01:19 PM

Hey @ kendogar, thanks for the info. Did you have to submit your in aap purchases for review With a build of did you just submit them standalone before they were approved for review and appeared in your app?

Comment
Add comment · Show 1 · 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 kendogar · May 11, 2020 at 01:56 PM 0
Share

I usually do submit them together with the first test-flight build in order to test the in-app purchase with test-flight users and they work right away. Does that help you?

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

79 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

Related Questions

The product.receipt of a cancelled IAP does not return null. Help? 1 Answer

Problems with plugins 5 Answers

iOS 14 Family Sharing for IAP and subscriptions 0 Answers

Android - Invoking the in-app billing service without setting a target package for the intent 1 Answer

InApp purchase dont working 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