In app purchases in iTunes Connect. How to make the in app purchase "Cleared for sale"? - iphone

I am trying to add in app purchases to an app that is already for sale on the app store for the next update. I have never added any in app purchases to it before.
I am using MKStoreKit to handle the in app purchases so I figure everything is as it should be on the coding side of things.
When my app starts up I query the list of available in app purchases, this successfully returns the list of in app purchases (just two at the moment) and the prices of them.
I have a button in my app that sends a purchase request, I pass in the appropriate product ID. This consistently gets cancelled every time and I get the error message
User cancelled transaction:
in the log.
From reading other blogs and posts I have come to the conclusion that it is because my in app purchases aren't cleared for sale in iTunes connect, they currently say "Waiting for Review".
I have tried everything on this check list to try get this to work http://troybrant.net/blog/2010/01/invalid-product-ids/ but still nothing.
I submitted an app and then a few hours later developer rejected it because I heard this worked for some people.
Anybody know how I make the in app purchases cleared for sale in iTunes Connect?

Just spotted that I never closed this question. The reason this was happening was because Apples servers were acting up at the time. Game center sandbox was also effected at the time. I left it alone for a couple of days and it started working when I got back to it.

Actually you should have tested the in-app before submitting them for review. Afaik, as soon as they are in-review state, purchases with the test account might not work. You could try and create another in-app item for testing purposes, just create it and try to purchase that (using your iTunes Connect Test account) without submitting it for review.
The cleared for sale status can be set in the pricing and availability section of the respective in-app item.

Related

iOS In App Purchase - "Invalid Product ID" in release, NOT development version

I created a new app and uploaded the binary to iTunes Connect, then tested IAP using the test user account, both on the simulator and on the device. Both worked.
I submitted the final app and it is currently live on the App Store. However, after deleting the development version from my device and downloading my app from the App Store to test IAP, the app immediately receives an "Invalid Product ID:" error.
Once again, the development version worked using the test user account, but live on the store it does not work and returns invalid product ID. Any ideas what this might be? If anyone wants to test this (in case it's just me) the app is called "ContaX" and is free with ads - you don't need to actually buy the upgrade, just see if it crashes after tapping the remove ads option.
I advise you to wait for 24 hours after your app is approved.
Sometimes it takes more time for the in app purchases to be available in the released application.
I am also suffering with this issue and my app has rejected two time due to this issue. I went to Apple Developer Forum to get the solution. The problem is might be with Review team's device or environment.
Here is the link of full thread: https://devforums.apple.com/thread/233371
I think it will work for you as well.
Double-check the bundle ID you've submitted the app under and the product IDs you're sending to the app. They have to match.
You may have accidentally submitted an app with a different bundle ID.
After fighting this problem for a while I realized I was using the "Apple ID" to get the In App Purchases rather than the "Product ID". So, make sure you're using the "Product ID" and NOT the product's "Apple ID"!
I'd like to share our experience. One of our apps did not have any purchase since release. It was over a month. We have tested in app purchase during development phase in sandbox mode, everything was ok.
When we deleted the development app from our device and installed the app from the app store, we got Invalid product id during purchase.
We double checked everything and tried many things. What we think done the trick is toggle "Cleared for Sale" in the iTunes connect.
We have 3 auto renewing subscriptions. In IAP page, We uncheck Cleared for Sale. then save, then again recheck Cleared for Sale, saved again on each product. remove app from the phone and download again from App Store.
Nothing seems to happen. After 30 minutes suddenly one auto renewing subscription started working. 2 other subscriptions still didn't work. After 5 hours all 3 subscriptions started working magically.
We are seeing something similar. On a new tvOS app with 8 auto-renew subscription IAPs, for the first 30 hours or so after release, none of the IAPs were available. Then one became available and now we are at 40 hours since release with still only 1 of 8 IAPs available.

In App purchase is getting rejected again and again

i have implemented the in app purchase in my application and added few in app purchases. on itunes connect i have filled all the details for the in app purchases. Initially the status of in app purchase was "waiting for review" and i was able to test in app purchase in sandbox env. but after every 4 days, in app purchases gets new status "developer action needed" and in the language section there is a "rejected" sign of in app purchase. so to make this use able again i have been using to make little change in description, which makes the in app purchase again in review
as history of the project is: right now application version 1.0 is available on app store in which in app purchases are not implemented
and i have added new application version 2.0 which is in "rejected by developer" state
so i just want to know why itunes connect team is rejecting in app purchase again and again?
also im not getting any email regarding this rejection
any one guide me what is the solution to this problem or any one else has faced this issue before?
Have you uploaded new version on apple store which is having in-app purchase code implemented ? if not then they will reject the in-app purchase items.
also if apple is rejecting your in-app purchased , then have you provided all the details to them. As if they find the in-app purchase improper then they can can reject it. Provide them proper details and proper screen shot for the same.
Also if apple is rejecting your in-app purchase then you may can ask apple review team about the issue. Use the Link. they will let you know the exact issue.
Hope this will help you.
I recently had this problem with an app submitted to Apple.
There is a fallback system that needs to be in place for server side in app purchase validation.
It is documented in Apple, but VERY well hidden in tech note :
http://developer.apple.com/library/ios/#technotes/tn2259/_index.html
Here is the way to do it :
"Always verify your receipt first with the production URL; proceed to verify with the sandbox URL if you receive a 21007 status code.
Following this approach ensures that you do not have to switch between URLs while your application is being tested or reviewed in the sandbox or is live in the App Store."

in-app purchase sandbox mystery: phone left in state unable to initiate purchase

I have an ad-hoc deployment of my iOS game, which includes in-app purchase. It is correctly set up with a purchasable item on itunes, and I have test users on itunes. I am able to successfully test it with my own iPod, and with a friend's iPod -- I can choose the item to purchase, get the price info correctly from the Apple server, choose to buy, enter the Apple ID and password for one of the test users, an the purchase completes successfully.
Another friend also installed the game on his iPhone and was starting to look at in-app purchase, but he followed an incorrect procedure, an now we can't get in-app purchase to work on his iPhone at all.
Specifically, he correctly signed himself out of the Store via the Settings application, then ran the game and chose the item to purchase. It correctly retrieved the price information. However, when the standard UI popped up and where he was supposed to click "Use an Existing Apple ID" he chose "Create a New Apple ID" by mistake. This brought him out of the game (game was sent to the background) and over to the web page to fill in the details for a new user. He realized that was wrong and returned to the game. But when he then tried to repeat he process, after retrieving the price info (again successfully), when he went to initiate the purchase, it errors out and never shows the standard UI where he can choose Existing Apple ID or Create New. So it's like his phone was left in a funny state. He tried rebooting the phone, reinstalling the app. Same problem. Then I recommended that he log in to the Store via the Settings app using his regular account, download a couple free apps, and then log out of the Store via the Settings app and try again. My thought was that this full process would somehow "clear out" whatever bad state his phone was in. But no dice. Same problem.
We can't figure out what state his device is in such that it fails when going to the purchase step of this sandbox in-app purchase process. I am still able to successfully complete the process on more than one other devices, so I don't think it's a problem with the state of the purchasable item or test users on itunes. It seems to be something specific to his device. I also had him using iPhone Config. Utility to watch the Console log as he went through this process. Very little was seen -- just an error code coming back after trying to initiate the purchase. (Nothing about PIPELINING errors and other web-service type errors that I've seen before when in-app purchase wasn't set up correctly on the sandbox.)
Any ideas on what state his phone could be in with respect to (sandbox) in-app purchase, and how we can clear it out?
Reset your network settings (Settings -> General -> Reset -> Network Settings)
Turn off your iPhone and turn it on again.
Wait for 15 min (This is the time iOS caches AppStore credentials)
Try running the app again.

iPhone app activated before associated in-app-purchase activated?

I recently submitted my iPhone app for review. I also approved the in-app-purchase for my app (and provided the in-app-purchase screenshot). It's a few days later and the app status has been updated from "waiting for review" to "in review"... while the in-app-purchase status is still "waiting for review". Could the app go live in the store before the in-app-purchase? If so what happens when the user tries to make the in-app-purchase? Anything the developer can do to remedy this?
Set the app availability date to a time in the future, then when the in-app purchase is accepted, set both dates to the present.
You should also uncheck the "Cleared for Sale" checkbox in the In-App Purchase page in iTunes Connect. This means the IAP won't go on sale (even after being approved) until you decide it should.
You should have a check in your app to see if an IAP is actually available, and only display it if it was found in the App Store.
The same thing happened to us on one of our submissions. The Apple reviewers wanted to see our in-app-purchase experience before they approved the app. So in the course of the review they made sure the in-app-purchase was up to par, and approved them both at the same time.
I'm not sure if this is the standard among app reviews, so I'd play it safe and go with #nevan's suggestion as well, because if the app goes through without the in-app purchase items enabled, the purchases will fail.

invalid Product Id's in In App Purchases iPhone application?

i just created In App Purchases for my new application and checked Cleared for Sale option.
But when i test my application after 2 days its still giving me invalid product id's..
I didnt Approve them earlier. Do i need to approve the App Purchases too before testing them...Will that affect my application when i upload my final binary and apple starts testing it??
I had the same problem.
It turned out I had to increment the version number of my app in my bundle. This was an app already on sale on the app store for which we decided to add in-app purchase.
Also make sure your bundle Id matches the one in iTunes Connect.
You don't need to approve the in-app purchase to test it only to clear it for sale.