- Home /
U3DXT in-app purchase Init failed and everything is setup!
Hi, every one! I can't get the IAP example scene to work. I followed you tutorial video on the subject and it was all very straight forward. But now I get the InitializationFailed error.
I've also made it log the e.error.LocalizedDescription() and it will say: Cannot connect to iTunes Store.
My contracts are in order and the iaps are setup correctly in iTunes connect.
I have read this topic: U3DXT Init failed...
But as i say, i setup everything in itunes connect correctly!
And sometimes when i log the e.error.LocalizedDescription(), i get a crash! So i someone used U3DXT before, please let me know if i can make mistake in some code or setup? Thanks! and sorry for my bad english !
Answer by thevinh1210 · Mar 11, 2014 at 05:48 AM
I found the problem. We HAVE TO SETUP BANK INFO AND TAX INFO even for testing! Thank u3dxt for all of your helps!
Looks like Apple has tightened the process. Thanks for sharing your answer; sure will help someone out later on.
Answer by u3dxt · Mar 04, 2014 at 05:18 PM
Hi, a few gotchas that might give you this error:
Does the app bundle ID match the one you have in iTunesConnect?
If you are using an existing app ID that you have live on the store and have downloaded it from the App Store, make sure to manually delete the app first.
If you are using Assets/U3DXT/Examples/iap/IAPTest, make sure to change the product IDs in the scene and not just the cs file.
Before launching your app, go to the Settings app on your device, scroll down to iTunes & App Store, and sign out of your regular iTunes account. You need to sign in to your sandbox test account in your app.
Last and most obvious, does your device have internet connection?
Hope one of this helps.
Thanks for reply! I used Assets/U3DXT/Examples/iap/IAPTes, and change both the product IDs in the scene and the cs file as you said. And, yes, i did all the things you said. Is there anything special that i have to do with iTunesConnect? I created a new app and then created 3 in-app!
Do you still see "Cannot connect to iTunes Store" error? What device and iOS version are you using?
For each in-app purchase item in iTunesConnect, a few more gotchas:
Use a reverse domain name for product ID, such as com.mycompany.mygame.product1.
$$anonymous$$ake sure you have cleared it for sale.
$$anonymous$$ake sure to add a language for details.
$$anonymous$$ake sure its status is Ready to Submit or Approved.
Under Current Version, In-App Purchase section, add your items.
Yes, i just see "Cannot connect to iTunes Store" error, but when i log the error like that, sometimes it crash. I use an iPod 5, and the version IOS is 6.1.3 I did:
Use a reverse domain name for product ID: com.mycompany.mygame.product1. $$anonymous$$ake sure you have cleared it for sale. $$anonymous$$ake sure to add a language for details. $$anonymous$$ake sure its status is Ready to Submit or Approved.
But im not clear to understand the last line? Can you explain more?
Oh, i understood! I add my 3 items in-app purchases to my app! but it still dont working! Or do i have to wait some hours for it?
And, the debug output says can$$anonymous$$akePayments is true! Oh, Do I have to setup bank info and tax info in contract?
Your answer
Follow this Question
Related Questions
Launching the appstore via u3dxt 1 Answer
[U3DXT] Bug? SocialXT.PostCompleted called with completed=true even if posting was unsuccessful 1 Answer
Gamecenter in ios 0 Answers
unity 5 u3dxt xCode errors 0 Answers
Variant ap for app slicing : Language 0 Answers