App Store receipt verification code 21002 with NOT Cleared For Sale - in-app-purchase

In our app we are using server side verification of receipts with app store. However the backend seems to always get 21002 error code from apple after verifying the receipt.
We are testing our IAP with TestFlight and we are able to successfully buy an IAP on TestFlight. The IAP is approved in AppStoreConnect but we need the Cleared for Sale checkmark not checked (so that it is not available for purchase in App Settings). Is is possible that this is the reason apple is unable to verify the receipt even for purchases in TestFlight. Or such purchases should be ok and we should look for the problem elsewhere?

Related

In app purchase is not working after release but it was working in sandbox mode

Reject from Apple for In APP Purchase
During development in app purchase auto-renewing subscription, I've created test accounts which are able to obtain the product of the in app purchase as well as actually purchasing it without an issue. I've submitted the version to the testFlight Beta and testing in app purchase as well as purchasing it with test accounts works well at sandbox mode environment. However after submitted to the IOS version app to the Apple review, the version of the app can't even retrieve the product, and nothing shows up when I press the button to send the purchase request.
IAP is attached to the binary and IAP is approved with the binary that i submit. But its not displaying in the production. In sandbox its listing fine.
Please tell me how you solved this problem?
Or is this factor not decisive and the application will not be rejected for this reason?

iOS in-app purchase not working with real account but working with sandbox

I submitted new version of my app with in-app purchase added. App has been reviewed and is ready for sale. When I download app from store to device in-app purchase doesn't work. App doesn't do anything when buy/restore is clicked. No price is displayed.
Itunes connect in-app purchase status is: Approved
With sandbox and the device everything works perfect.
It is my first app and maybe I forgot to do something.
One possible thing is you missed to change the receipt verification URL of your receipt, If you are doing it in your app.
Sandbox URL
https://sandbox.itunes.apple.com/verifyReceipt
Production URL
https://buy.itunes.apple.com/verifyReceipt

iOS Auto-Renewing Subscription Test Device Crashes

I have an app that uses Auto-Renewing In-App Purchases... During testing, I was verifying receipts against Apple's test URL. Now all of my TestFlight testers, and myself, are having an issue now that the app is in the App Store. When I use my Apple ID and account in the app, the app crashes trying to verify the receipt.
I deleted my app account's receipt data on the server side, deleted the app, reinstalled, and signed out of my iTunes account and logged back in. So there shouldn't a receipt in the bundle or on the server side, but the crash still occurs. Other (non-test) users are not having the issue.
Any ideas on what's going on?

Rejecting IAP - iTunes Connect

I ran a test submission on my app using iTunes Connect, and I accidentally selected all of my IAP to be submitted as well. The submission didn't go through, but the IAP remained "Waiting For Review". There is no way to reject the IAP or deselect the IAP for submission at this point (the option goes away once the app goes "Waiting For Upload" for the first time).
Does anyone know how to get the IAP rejected? Rejecting the app didn't release the IAP (I had read that that would work, but it didn't). Not all of the IAP I selected will be in this version, so Apple will surely reject my app when it finds the submitted IAP is not there.
Anyone have any advice?
You can contact the App Review team which can reject that IAP for you. https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa/wo/7.0.0.7.5.0.0.11.0.0.5.1

iOS - Inapp Purchases - setting in server

I am creating iOS app with in-app purchase feature in it.
I created the app id, profile etc successfully.
I also added the in-app purchase ID, etc in apple's itunes connect.
But on the top I'm seeing the following message:
Your first In-App Purchase(s) must be submitted with a new app version. Select them from the In-App Purchases section of the Version Details page and then click Ready to Upload Binary.
I didn't understand what does it mean?
When I'm testing, i'm not getting response from server.
how to identify and correct the issue.
this is my first app that will be pushed to app store.
Once the bundle id for the app is created, app store app is created, in-app purchase id's are created, we need to push dummy app and immediately reject it.
Then only in-app purchases work. else it wont

Resources