I\'m going crazy testing my app for inApp purchase. I cannot get any valid product.
I\'ll try to make some questions here, hope someone could answer.
Do
There is no need what-so-ever to submit the application binary before testing in-app-purchase in SANDBOX environment.
The In-App-Purchase product'll 've state READY TO SUBMIT.
You do not have to upload a binary. You can set up your app in iTunes Connect, and then set up your products associated with it. The "Waiting For Review" on your products will stay waiting for review until you submit a binary and submit the app and it gets approved. You can still test, however, even with your products "Waiting For Review". There is (IIRC) a transitional state which you as developer must mark your products as approved after you have tested them.
Note: Once you create the app in iTunes Connect, you have 90 days to submit a binary before they take your app name away from you.
Note 2: When testing with your debug build before submission, you have to use the development sandbox servers. See the IAP documentation for more info.
Ensure that the project Bundle ID is the same as the registered for the application in itunesconnect.
Those of you having trouble with In-App Purchase (IAP) make sure a few things are done correct,
Once all these are done you should be able to make In-App purchases using those test accounts. It worked after a few hair pull-offs for me.
i had the same problem. for me helped 2 things in combination:
But in FAQ 6 are some more reasons for this problem listed:
You did not complete all the financial requirements (see the "Contracts, Tax, and Banking Information" section of this document).
You did not use an explicit App ID.
You did not use the Provisioning Profile associated with your explicit App ID.
hope this will help some more of you.
I spent waay too much time on this exact problem too.. you do not need to upload a binary to get the in app purchase testing, what that means in iTunes connect there is that you cant add additional products to an existing product on the iTunes shelves. For example if your app is live and at version 1.0, and v1.0 was submitted with only one in app purchase connected with it, there can never be a 2nd in app product for v1.0, to add a 2nd (or many more) in app products you need to resubmit, go up to 1.01 or whatever. The key thing that I was overlooking, and I hope this helps, is YOU MUST BE USING A PROVISIONING PROFILE FOR THAT IS MADE FOR THE APP IN QUESTION, not the generic profile that xCode's little helper wizard thing just builds stuff on by default. Try that