iOS In App Purchase get product id in invalidProductIdentifiers array - ios

this question is asked many times and i try many soluation but still getting invalid product id.
I'm done following steps:-
1) Created an App ID with Bundel Id "com.app.name".
2) Created In-App Purchase Products in itune "com.app.name.iap".
3) Created a Sandbox User.
4) Project Configured.
- On In-App Purchase in Capabilities tab
- add StoreKit framework and also done code
Q1) Is require bank detail for test IAP app?
Q2) is required register an IAP App ID for your application?
For Q2 i have some dought so detail following:-
In itune application is created with bundel id "com.app.name" and inside that created IAP with id "com.app.name.iap" and also created "com.app.name" app id in developer account.
is it compalsory to create new app id with "com.app.name.iap"?

The "Paid Applications Agreement" is required to test any IAP. It sounds like that could be your problem. Here is a handy blog post that covers the most common reasons for this problem, with #1 being the missing paperwork: Configuring In-app Products is Hard

Is require bank detail for test IAP app?
No , but you must login with the sandbox id as icloud account you created within test device.
is required register an IAP App ID for your application?
No you need not need to register IAP App ID . But you must have created it within app and app bundle id must be registered.

Related

Required to sign Paid Applications Agreement to enable initial IAP testing on iOS?

I'm developing a iOS app containing in-app purchases.
I'm having problems testing the app because it can't download IAP products from iTunes. Do I need to sign the Paid Applications Agreement even to perform initial (local) testing?
To test the purchase add one user / email ID which is not an apple ID under User and Groups >> Sandbox Account in iTunes account.
Refer below screenshot for the same
and If you are not able to get the IAP products from iTunes try this link and check wheather the store is working for you.
https://sandbox.itunes.apple.com/verifyReceipt?uo=8&at=11ld4k
if the link responsd with status code its working.
Resolved after signed the Apple Paid Applications contract.

Transfer iOS app from one Apple account to other

I want to transfer my iOS app from one apple store account to other. For both accounts I have team agent role and I have logged in with same access details.
At documentation, I found this article and I want to follow similar steps from my side - Transferring and Deleting Apps
But at above reference link, I found this option/link - Transfer App:
When I actually logged into my account, I can't able to find this kind of option to move app from one account to another. Here is screenshot for my account:
So actually where is the app transfer option?
If you haven't published a version of the app yet, don't worry about transferring it, because you can't.
Log into the team you want to transfer to.
Click on My Apps.
Click the + to create a new app, as you did in the other account.
Fill it in.
Forget about the old record - it's just metadata. If it bothers you, you can change almost everything about the unpublished record and use it for something else.
When To Transfer Apps
There's no point in transferring an empty app record. Simply create a new entry in the other iTunes Connect account. The whole point of an app transfer is to preserve reviews and the upgrade path for users. If those weren't a concern, you'd just create a new app entry anyway.
The only downside to this is that you lose the original app identifier (com.example.appname) but since nobody sees that, it doesn't really matter. Adjust your code signing certificates and you'll be fine.
When Transferring Apps Is Allowed
According to the documentation, there are a few conditions for transferring apps:
Both developer accounts must be completely set up.
The app must have a published version.
The app cannot use entitlements for iCloud or Passbook.
The app cannot use (or have ever used) In-App Purchase subscriptions
The app cannot be cannot be In Review.
Any in-app purchases for the app must also not be in review.
Any in-app purchases for the app must not have product IDs that are the same as in-app purchase products on the destination account.
What Transfers, What Doesn't
These things transfer over:
Bundle ID: The app's bundle identifier
iTunes Connect App Record: Metadata (the description and the rest of the app store entry.) The new team name will appear under the app name once the transfer is complete.
User Upgrades: Users will see the next update from the new account.
These things don't transfer over:
Download Stats: App download number don't transfer over. The new developer account will start from zero downloads.
Keychain Access: Keychain access is lost for transferred apps, because the team prefix changes.
Handoff, Universal Links, Shared Web Credentials: If you're using an apple-app-site-association file, you'll need to modify it to include the old app identifier as well as the new one. You want both, because you don't want to break functionality for users who didn't upgrade yet.
Discussion with Apple Developer support for App transfer related queries, which may help some one
1. Is App transfer between one developer account to another possible ?
Ans: Yes
2. Can you transfer an App that is live on App Store which is published from a Apple Developer Account can be transferred to an Apple Enterprise Account ?
Ans: No
3. After creating new developer account can I transfer the App quickly ?
Ans: After initiating a transfer from sending account the receiving account need to accept the App transfer request, and after accepting the request it will take 1 or 2 days for the transfer to complete. During this transfer process the will not be available in appStore.
4. How many days will it take to create a new Developer account?
Ans: It is not same all the time, but usually takes 2 to 3 days.
5. Post expiry of the developer account can I transfer the App to a new developer account?
Ans: No post expiry of your developer account you can’t initiate the transfer, and if you need to transfer you need to call the Apple Customer support and then we will do it.
6. Can I use the same App name after the account to which it belongs expires?
Ans: You can use the same name only if you transfer that App from the old developer account to new developer account. As every App name is unique in AppStore. And there is also app data maintained for each single App, even if you delete an App from the App Store, Apple will store and maintain the app data, So you can’t create a App with the same name even if you delete the App as Apple will maintain the app data related to that particular App. But you really want to upload a different App with the same name, you after deleting you App need to call Apple Customer support and request them to delete the "app data” which was maintained by them for the App which you just deleted. And after Apple deletes that “app data” you can create a new app with the same name.
7. In an enterprise account can I create developer account and publish App to the App Store ?
Ans: No
8. Can I use the same id to create both Developer and Enterprise account ?
Ans: No
9. In my old account I have some member added in people section with different roles, will that also gets transferred?
Ans: No, You need to add them again to the new developer account.
10. When I transfer will all the TestFlight data also gets transferred ?
Ans: No
11. After App transfer, will the already installed Application will work correctly ?
Ans: Yes
12. And if I push update for the App, from the new developer account will the already installed App get the update?
Ans: Yes, they will get the new update, for them there will be no difference.
13. App ratings and user reviews will also get transfer to the new developer account ?
Ans: Yes
14. App id for the App will also remain same after transferred to new account right ?
Ans: yes
15. What if the App has some payment related to it and the previous account had some bank details added for that?
Ans: If this is the case then we need to first add the bank details, and then initiate the transfer.
Have a nice day :)
Your App status says "Prepare for submission" and there is no published version so you have to get your app published first and as mentioned in the Apple's documentation "The app should have at least one published version for transfer".

iOS: In-App Purchase

I have implemented in app purchase in my application with multiple products and my application is live now.
As i have created multiple products there organization id is eg. com.abc.product1, com.abc.product2 and so on and i have assigned that number according to the id i have received from web service response.
In my Xcode application i have assigned product identifier as com.abc.product and i am attaching that number dynamically to that identifier.
If i have more products to add in the application then i will create in-app products in iTunes connect.
So my question is i need to create new build for those products or i have to just create products and submit those for review.
If you initial app is approved and live, you don't need to create new Build to submit additional in-app purchases.
You can submit them at any time and submit in bulk as well. See below link for instruction on setting them up
https://developer.apple.com/library/content/documentation/LanguagesUtilities/Conceptual/iTunesConnectInAppPurchase_Guide/Chapters/SubmittingInAppPurchases.html
You can continue with this approach. But make sure that you are validating the product identifier with itunes first before showing it to the user, just to make sure that the identifier formed at client side is available at itunes also.

Swift IAP purchase already bought later can use free with change purchased apple id error

Im building new app and have 1 service (Consumable IAP) inside. Once users need to create account and login into app forIAPS.
Im trying to test it on sandbox with example test#test.com apple id later doing everything success bought IAPand later i add client limit have this service for my db and user logout. Later if user create new account and login into my app again try to buy this service with IAP says him already purchased:) and this is bug for me . how can i resolve it ? any idea.
So with this bug: users can change apple ids in device with purchased apple id later can use my service free.
I need to fix it how can i do ? any idea ?
Thanks

In App Purchase is not allowed

My app is in development phase I tried in app purchase in sandbox mode. But form last few days if I press purchase button it some time asked to insert my apple id password, but after that it says apple id not found. Though I can download apps with my apple id.
Sometimes it does not show ask for password, I debugged the code it always shows SKPaymentTransactionStateFailed this status.
Ii was working a few days ago.
You can not use an Apple ID to test IAP especially if your app is not live... You need to create a sandbox test user in iTunes Connect´s user and roles section and use these credentials to test IAP.
If your normal Apple iD is set in iTunes & App Store settings log out before testing IAP.

Resources