Cannot connect to Itunes Store, HELP

Well,

I ckecked the InAppPurchase folder and is basically the same as InAppDemo, but with option to Android.

I tried with print statements on InAppDemo and i found that validProducts = 0, and because of that the buttons of the products don’t show up.

In the InAppDemo code, in the function “loadProductsCallback( event )”, it’s defined that validProducts = event.products. So i tried to print event.products, but the code freezes in that point.

Any ideas of why this happens? What is suposed that have to return event.products?

[import]uid: 105206 topic_id: 25314 reply_id: 103282[/import]

@nml, did you try print("event.products = " … tostring(event.products)) – it may print nil, and if it does, it sounds like you need to work on properly setting up the product at iTunes Connect.

You may want to read through this. It helped me:

http://troybrant.net/blog/2010/01/in-app-purchases-a-full-walkthrough/

Also, if you end up getting invalid products, you may want to read up on this too:

http://troybrant.net/blog/2010/01/invalid-product-ids/

Good luck.

Naomi

[import]uid: 67217 topic_id: 25314 reply_id: 103312[/import]

Hi again,

Well, i think i found my problem, but i don’t understand it.

In all webs and forums says that you have to put the entire product ID, like “com.runmonster.runmonsterfree.upgradetopro”.

I tried doing it only with the las part, like “upgradetopro” and it works! I test it a lot of times and it works.

However, today i’m trying to test it and it says me that “the product isn’t available for purchase”.

I found in everywhere that you HAVE TO put the entire product ID. Why this is not working for me? [import]uid: 105206 topic_id: 25314 reply_id: 103497[/import]

@nml, that is very strange. I did read somewhere on Forum that some people needed to use the last part of the product ID (like you noted above), and I thought it was misguided – but I suppose, for whatever reason, it needs to be done that way sometimes… Would be nice to find out why.

So… are you saying that using last part worked and then stopped working? And then, using the entire product ID doesn’t work either?

If it’s not too troublesome, maybe you want to try creating an entirely new app with a new set of in-app products and test the whole thing??

Naomi [import]uid: 67217 topic_id: 25314 reply_id: 103570[/import]

Hi @Naomi and @RSCdev!

Well, i did what Naomi told me about create a new app with a new In-App Purchase. But i never got to test it because the old product ID started working again.
I’m still using the last part of the product ID.

I’ll try with the new app and the entire product ID and i’ll tell you what happen.

I’m really grateful to you two. Thanks for all the time you devoted to help me.

I think the IAP finally works!
Although i don’t understand why… [import]uid: 105206 topic_id: 25314 reply_id: 104124[/import]

@nml ,

Mate, you have no idea how is good to hear that you got it working! Does not matter how, but if it works and you can submmit it to AppStore, WOW, you got it! :slight_smile:
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 25314 reply_id: 104126[/import]

@nml, so glad to hear you’ve sorted this out! Glad to hear we (Rodrigo and I) could help you out.

Cheers,
Naomi [import]uid: 67217 topic_id: 25314 reply_id: 104129[/import]

@Naomi , Hey my friend, you were the protagonist at all!

PS: I learnt with you. :wink:
Thank you,
Rodrigo. [import]uid: 89165 topic_id: 25314 reply_id: 104130[/import]

Just putting my two cents in. I had the same problem as nml, i tried everything. The problem ended up being with the identifier. I had to do the same thing as nml. Just put the identifier and it works like a charm. I Don’t know the reasoning being this since i read everywhere that you had to have the full string. But oh well its working. [import]uid: 126161 topic_id: 25314 reply_id: 108735[/import]

@3 Dreams Gaming ,

Thanks for sharing your own info about the “tragic” proccess of setting up IAP into iOS.

By the way, all of this is very odd because as youve said above that youve done exactly as @nml regarding the [lua]identifier[/lua] settings, I can say that I`ve done mine using the full string and it has worked nice, my problem was concerning on not using an AdHoc profile.
Going forward and learning as always…nice.
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 25314 reply_id: 108739[/import]

I had the same result as some of you other commenters. It started working when I used just the IAP portion of the product identifier instead of the full string. Corona folks, maybe you can chime in about why that is the solution when all your docs and Apple’s say different? [import]uid: 61256 topic_id: 25314 reply_id: 131882[/import]

I had the same result as some of you other commenters. It started working when I used just the IAP portion of the product identifier instead of the full string. Corona folks, maybe you can chime in about why that is the solution when all your docs and Apple’s say different? [import]uid: 61256 topic_id: 25314 reply_id: 131882[/import]

hi, sorry for resurrecting this topic … but I’m having some problems with IAP … when I test in my device it returns an error saying that it failed to connect with Itunes … but it never asks for me to login (i’m not signed in any account) can anyone pls help me? I’m running out of time and of ideas of what to do :( 

Have you set everything up in iTunes? 

Have you created a test account?

Have you logged out of your real iTunes account on your device and logged in with your test account?

Hi Rob, 

I think i setted everything up in Itunes, I have to upload the binary to test the app store? Because it’s the only thing that is missing! 

I have created a test account, but Itunes doesn’t even ask for login, it simple returns an error that it cannot connect! 

My iPad isn’t logged in any account. I have to login in my test user in the iPad or only when the app asks for it? 

Thanks for the help! 

You only log into the test account from the device when your app runs and it calls store.init().  You do not have to upload and submit your app to test.  It used to be that way, but Apple doesn’t want that any more.   Have you submitted all of your InApp purchases for review?

I resolved the issue!! Thanks for the help! i used just de product id in Store.purchase and it resolved the issue!!  

hi, sorry for resurrecting this topic … but I’m having some problems with IAP … when I test in my device it returns an error saying that it failed to connect with Itunes … but it never asks for me to login (i’m not signed in any account) can anyone pls help me? I’m running out of time and of ideas of what to do :( 

Have you set everything up in iTunes? 

Have you created a test account?

Have you logged out of your real iTunes account on your device and logged in with your test account?

Hi Rob, 

I think i setted everything up in Itunes, I have to upload the binary to test the app store? Because it’s the only thing that is missing! 

I have created a test account, but Itunes doesn’t even ask for login, it simple returns an error that it cannot connect! 

My iPad isn’t logged in any account. I have to login in my test user in the iPad or only when the app asks for it? 

Thanks for the help!