In app purchase does not work when live - iphone

I have an app in the app store that I have added an in app purchase for, I fully tested it in the sandbox environment and all worked fine. I have had the app update and the in app purchase approved by apple and according to iTunes connect all has gone live. The app updates just fine but then in app purchase simply doesn't work!! No products are returned! Anyone else have this problem? Surely if it worked in the sandbox and apple has approved it, there should be no issues!?

It's all working just fine now! I didn't do anything it just seems to have taken about 36 hours for the in app purchase product to propagate through apples servers! :)

We just went live about an hour ago with the EXACT same issue. Everything worked during testing and even when Apple reviewed the application. I even verified they completed test purchases via analytics. But when users in the app store download the update, try to buy the feature it just fails.
My only guess is our store data has propagated to their live servers? The apps are still using the sandbox environment?

Which URL are you using to connect to the Apple servers?
The sandbox url is:
https://sandbox.itunes.apple.com/verifyReceipt
When launching the app or going live the url needs to be changed to the live Apple servers:
https://buy.itunes.apple.com/verifyReceipt

This has got nothing to with the receipts or anything. If it was working in the Sandbox mode, it's gonna get automatically fixed in around 24 hours in the live version, don't worry. The exact same thing happened to us and we could do nothing but wait...

Also, make sure the iTunes account on your device is set to your real account. If you are are still logged into a test user from when you were testing your IAP stuff, your purchases won't work.

So incase a where in app purchase in your app not working past 48 hrs, kindly visit developer.apple.com to update your tax information. In app purchase won't function until the in app purchase is updated even the app is live too.

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 testing is done, do I need to do anything before uploading to app store

I have made an app and integrated in app purchases feature.
After reading a lot and lot I have finally working in app purchasing featured app and when I use my test account (created through iTunesconnect), it all just go smoothly and works as like expected.
I just wanted to ask that, do I need to make any configuration in iTunes connect or enable/disable any options before going live by uploading the app to the app store?
Or should I consider that if the test account works well, it will be working live too without any additional changes.
Also let me tell you all that I am a beginner for this in-app purchasing concern so please forgive if this is a silly question. :)
Thanks,
Just make sure that you link the in-app purchase to the correct version of your app in iTunes Connect and that your in-app purchase is ready for review. It that is correct, then you're ready for upload and review.

StoreKit Sandbox Testing Doesn't Prompt to Log in

I'm testing an in-app purchase which did work fine a week ago, but now seems to be playing up.
I can load the product from the store without any problems (using NSLog to confirm the product id, price etc...), but when I send the actual request to purchase the product - I don't get challenged to log in to my (test) user account, it just returns an error code -1003 "Cannot connect to iTunes store".
This is strange because it did work a week ago, and now it doesn't. What's weirder is that it does prompt me for my password (to purchase the product) if I am currently logged into my live iTunes account.
It's almost as if the app is checking to see if there is an iTunes account logged in, and if not it will just fail... which is rather annoying as you're not supposed to log into the test accounts via your settings as it will invalidate it.
Can anyone shed some light on this for me? I'd be well chuffed if you could :)
Thanks!
I have had this issue as well. You may want to try one or all of these steps.
Delete the app from your device and rebuild it.
Log out from any iTunes account on the device.
Delete the app. Reboot your device and build and run again.
Log into the iTunesConnect portal and view your test user page.
I have been able to reconnect by doing one or all of these things.
Hope this helps.
I've fixed this by creating a new test user. My guess is the test account accidentally saw the live store - which tends to kill them. Might be your problem as well?

Splash screen & InApp purchases not working on a live app

I have recently published an App to the App store.
When testing the app everything was fine (in-app purchases, splash screens etc.).
Now that the app is live I have two major problems:
The splash screen (Default.png) is not showing. I have retested it on my development build and it
works fine but in the live app it is not working.
The in-app purchases are not working. I have retested it on my development build in sandbox and they
work fine but in the live app they are not working.
I have read that it is possible for in-app purchases not work for up to 36 hours after release but I have never had a problem where the Default.png file did not show.
Does anyone have any experience with this? Is it possible that I am meant to do something specific for the in-app purchases in when the app goes live ?
Thanks.
While verification of transaction receipt check the url that u have used (This may be the case).
For an application which is going live: https://buy.itunes.apple.com/verifyReceipt
For testing purpose: https://sandbox.itunes.apple.com/verifyReceipt.
Also check if the AppID that you have used while submitting the binary is Enabled for IAP.