IA purchase products not come to the console

Hello guys! So basicly I try to make my products appear on the screen but there is some issue.

I wrote to the apple support they looked through my log and found that I have some iTunesConnect error.

So what do they wrote to me


"In reviewing the screenshots, I see that for the in app purchase item, iTC is reporting an error that the iAP identifiers must be associated with a new version of the application. Looks like you need to follow these instructions first - Is the application already in production - that is ver 1.0 (Actually, the screenshots don’t show the app version) It appears that the problem is that the app version needs to be incremented. What I don’t know is whether you also need to define new in app purchase identifiers. For answers to these questions, you need to ask iTunesConnect."


This is test app and I just want to test IAP. So I don't understand what I have to do to make it work.

Have anyone had such problem before? This is my fouth test app and the same old way problem as before.

Answered by p1us in 84993022

I found out the problem.

That was issue with certificates and with provisioning profiles.

For the first view everything was fine with it but actually not.

So I reinstalled certificate and deleted all provisioning profiles -> Create new profile

After that I created new project and new App in iTunes Connect and after that for the first time it is working.

Hope it save time to someone!

If the desire is to see the in app purchase process work, download the StoreKitSuite sample code, then go to the iOS Portal, define a new application bundle identifier for use with the sample app, then register the bundle identifier in your iTunesConnect page as well as register new in app purchase identifiers. Use these identifiers in the StoreKitSuite sample code and things should work. The StoreKitSuite sample code is on the Apple Developer sample code site

<https://developer.apple.com/library/ios/samplecode/sc1991/Introduction/Intro.html#//apple_ref/doc/uid/DTS40014726>


Since I was the one to respond from DTS, the issue you have with your attempts to get In App purchase working is that you appear to have an app already published. You've apparently added in app purchase identifiers to the application, but have left the version number as it was for the published app. The iTunesConnect alert indicates that you need to increment the version number of the app so that the in app purchase identifiers are associated with a newer version of the app. I'm familiar with the StoreKit API's, but not so much with the iTunesConnect app registration and versioning process. Some other developer who sees this may be able to provide more information on the reversioning process.


rich kubota - rkubota@apple.com

developer technical support CoreOS/Hardware/MFI

Thank you again Rich, I will check sample code project and will say about results. But it is still not clear for my why the version of my empty test up should be higher than 1.0. So I need to find this out as well.
All I want is to be possible to write simple app that can include IAP. So sample code will not help me to find out the problem.
How can I contact iTunes connect support directly not via DTS?

Thank you!

When you first add IAP to your project you must do that in conjunction with submitting a new binary. Subsequently you can add new IAPs without submitting a new binary. To submit a new binary you must use the next version. Is that your issue?


Another issue with IAPs is that developers often fail to delete a production version of the app from their devices before loading an Xcode version. If you overlay an Xcode version onto a production version (for example to use the files saved by that production version) then the Xcode installed version will appear to StoreKit as a production version and StoreKit will point to the real store not the sandbox. That causes errors.


By the way - in the distant future you may want to check the receipt to see what the original version the user purchased. In sandbox testing that will be "1.0". For some complex testing reason that I cannot at this time recall, you do not want to have an actual release at 1.0. You want to start all releases at 1.1 or beyond. You can search the forum if you want to understand this sandbo testing delema.

Do I understand you right if I say that firstly I need to do an app with IAP after that I have to do new binary (app ID and bundle ID) and use them into the app?

Or I should somehow update the version of my test app somehow to made AIP available? I test my products request on the simulator. This part should work on it.

Thank you!

1) you can't reliably test IAPs on the simulator. You must use a device attached to the computer.

2) I was referring to a submission to the app store. If your app is approved and it does not have IAP, and you want to add IAPs and get them approved for sale, you must also update the binary, upload the updated binary, attach the IAPs to the updated binary in iTunesConnect, and then submit the updated binary, with attached IAPs, for approval. If your approved app has IAPs in it then you may submit additional IAPs for approval without also submitting a new binary.

3) I do not think you need to change the version of the app if you add IAPs and are just testing it in Xcode - but I could be wrong. And again, you must use a device, not the simulator, and you must (very important) DELETE old versions of the app and log out of the app store before reinstalling the app on the device from Xcode.

Still not working. Steps I made:


1) downloaded tutorial project

2) updated it to Xcode 7 swift 2.1 (not a big deal)

3) made new iOS App ID (IAP is available by default)

4) connected new app ID with iTunesConnect

5) Then I change bundle ID of app first screen and in .plist file as well to bundle ID of iTunes connect

6) deleted app from my iphone and run it again.


And still no producs in my product request.


7) After that I changed the version of my App in Xcode and run it. No luck

8) Then I changed the app version in iTunes. Same

I see only that I don't have products.


After that I downloaded sample code from https://developer.apple.com/library/ios/samplecode/sc1991/StoreKitSuite.zip

and used the same bundle ID and product ID in the app. So I got only that my product ID is invalid.


9) I made new App ID and used it in the app. Used new bundle ID in the app. No luck

10) After I downloaded sample project. Changed everything according to instruction and I got my product ID in invalidProductIdentifiers array.

11) I used this list to find out the problem:


Why are my product identifiers being returned in the invalidProductIdentifiers array?

Your product identifiers may be returned in the

invalidProductIdentifiers
array for one or more of the following reasons:
  • You did not use an explicit App ID.
  • If you or App Review rejected your most recent binary in iTunes Connect.
  • You did not clear your In-App Purchase products for sale in iTunes Connect.
  • You did not sign your app with the Provisioning Profile associated with your explicit App ID.
  • You might have modified your products, but these changes are not yet available to all the App Store servers.
  • You did not complete all the financial requirements. See Contracts, Tax, and Banking Information for more information.
  • Your product is an Apple-hosted one whose content has not yet been uploaded to iTunes Connect. See Hosting Non-Consumable Products with Apple for more information on to upload hosted content.

I got answers

  • I use explicit app id
  • my app was not rejected as it is test and I didn't try to submit it
  • I have single product for sale
  • provisioning profile set to automatic. And I also tried to make one and use it in xcode
  • I did't modified anything for an hour (may be I need to wait a little longer?)
  • Tax and Bank accounts filled
  • Not Apple-hosted


I use real iPhone to test it with my profile logged out.

Please guys help me to find the problem out.

Thank you!

In your list above you did not say that you added the IAP product on iTunesConnect.

In your list above you did not say that you added IAP to the 'Capabilities' of your target in Xcode.

  • I meant single product is added for sale with screenshot to be available to test it.
  • And yes iap is available in 'Capabilities' in all projects.
Accepted Answer

I found out the problem.

That was issue with certificates and with provisioning profiles.

For the first view everything was fine with it but actually not.

So I reinstalled certificate and deleted all provisioning profiles -> Create new profile

After that I created new project and new App in iTunes Connect and after that for the first time it is working.

Hope it save time to someone!

IA purchase products not come to the console
 
 
Q