iOS - In-app purchase unknown product identifier - ios

My IAPs was working before. All of it. Some of it is live on App Store. Right now I am getting this error:
unknown product identifier
I did not touch the code for IAPs. There is no changes in Agreements in iTunesConnect.
I did change the app name though. Can that be the problem?
What could have caused me to get this error?

Related

iOS in app purchases - "Invalid product ID"

So I think I did all the steps to try to put in-app purchases onto my app, but it still just says "Invalid product ID".
I made the app on Xcode
I registered a bundle ID on xcode
I went to developer.apple.com and checked that the App ID is there, and it is.
I signed into itunes connect and created a new app. I used the same bundle ID.
I created an in-app purchase and created a product id for that (it says ready to submit).
I followed a tutorial and used SwiftyStoreKit (installed with cocoapods) to put in-app purchases on my app, and used the same product ID I created a step ago.
I delete the app on my phone, and then build it onto the phone again.
I test it, and it says invalid product ID.
the log of the error:error(__C.SKError(_nsError: Error Domain=SKErrorDomain Code=3 "Invalid product id: NWPremium" UserInfo={NSLocalizedDescription=Invalid product id: NWPremium}))
Do I have to submit the app for review before in-app purchases will work or something? Because the tutorial I followed didn't have to do that. Did I go wrong by registering the bundle ID in xcode first?

In app purchases using SwifyStoreKit unable to get info about product

I am implementing IAP in my iOS app, and I am using the latest version of SwiftyStoreKit Framework to help me with the purchases.
I have done all the pre cursor tasks such as setting up a developer account in itunes connect, generating provisiong profiles for the app, making new consumable and non consumable purchases in TestFlight, adding those purchases to the app information (ready to submit) and also creating a sandbox user. I have done debugging following this answer, this one and this one.
Now, the problem is that whenever I send a request to retrieve info about a product, I get the following error.
RetrieveResults(retrievedProducts: Set([]), invalidProductIDs: Set(["com.mycompany.app.consumable"]), error: nil)
and when I try to purchase the product, I get this error Purchase Failed: SKError(_nsError: Error Domain=SKErrorDomain Code=3 "Invalid product id: com.mycompany.app.consumable" UserInfo={NSLocalizedDescription=Invalid product id: com.mycompany.app.consumable})
Restoring purchases and verifying receipts seem to work fine...
Any pointers would be very helpful.
Thank you.
UPDATE:
I have now left behind the SwiftyStoreKit framework and am using Apple's own way of using a SKProductsRequest, where I have setup the delegate functions and all the requirements and then I run the function call 'SKProductsRequest.start()' and it still gives me back a set of invalid product ids once again.
For the new method, I setup a new project, along with bundle ids provisioning profiles, and itunes connect app. I can upload the app to itunes connect for testflight too! So the ids seem to be correct.
Ok, after all this time I visited my old co-workers again and they told me that the admin had forgotten to accept the store agreements.
Even though I had specifically mentioned it as a possibility... but oh well. They were able to get purchases working again after that.

Unity IAP for IOS -- No App Receipt found

I am trying set up some in-app purchases through Unity IAP for iOS devices. Registering the various product IDs, the initialization process seems to have passed successfully. However, when I tried to make a purchase using an iPad connected to a Mac, I received an error message on XCode saying:
UnityIAP: No App Receipt found
The purchase failed. The reason given for the error was: Unknown.
On the Unity editor, the purchase did go through without any problem.
So what could be the reason? What is an App Receipt?
I hired a freelancer to fix the issue. He asked me to test the system with a test user's account, and it succeeded. Apparently, for the IAP to work, all I needed to do was to release and publish the game in the Apple's App Store, and download the app from the App Store directly!
It is also worthwhile mentioning that we need to fill in the forms at Agreements, Tax, and Banking. Otherwise the initialisation process won't even pass.

App rejected for "Parse error 146" during In App Purchase

my new app was rejected by apple because of "Parse error 146" during In App Purchase.
But when I test my app on my real device, all works perfectly.
I've read that error 146 means that the product identifier is invalid. But all my product Id registered on iTunes Connect are correct.
All my In App Purchases are in "Waiting for Review" status. Could be this the problem? Do I have to wait the review of In App Purchase and THEN submit the app?
Many thanks in advance,
Nicola

In-App Purchases fail after rejected binary - worrisome?

Our IAPs were working fine in sandbox mode with test users. We submitted our binary for review but missed one feature, which caused the review team to reject it saying that the IAP feature could not be found in the binary (it was there, but more hidden than it should have been).
Now when I am testing the IAP functionality, I get Error Domain=SKErrorDomain Code=0 "Cannot connect to iTunes Store". I have read enough to assume this will just work again once we get the binary approved, but I'd rather not have an app go live with broken in-app purchases.
Has anyone had experience with this?
Notes: similar questions on stack overflow have been met with suggestions to delete the app from the device, create a new test user, and clear all provisioning profiles, all of which are not working. The products are being fetched correctly and the error is happening in paymentQueue: updatedTransactions: with the transactionState being SKPaymentTransactionStateFailed
Thanks!

Resources