iOS: In App Auto-Renewable Subscription error while purchase - ios

I have successfully implemented the in app purchases for consumable products. And it is working great.
Now i'm getting "Can't connect to iTunes store" when i'm trying to confirm the auto- renewable subscription. Is there anything special that we should do for the subscriptions.
Checklist that i have already gone through and verified several times
Tax, agreements are all set
Localization is all set i believe
Price tier is set
Tried new sandbox user with multiple territories (UK & Pakistan). Store is pakistani right now.

Found the solution after a lot of hit and try. I was missing period of subscription on iTunes connect.

Related

Is agreements, tax, banking setup required in order to test In-app purchase?

This question has been asked before here however no one has given the user an answer. I am in the same situation and I was wondering if someone has the answer to it?
Here is the question again:
"I am new to iOS and am building an app that has in-app purchase. The app is not yet ready(not in app store) and i am trying to test in-app purchase. I have created the products in iTunes Connect as per the documentation, however, everytime i try to get the list of products from my app, it's always showing up in invalid product identifiers.
I did not setup agreements, tax and banking yet and am not sure if this is required even to test in-app purchase?"
What could be the reason to be getting invalid product IDs even though I have triple checked that Im using the correct product ids when making SKProductsRequest, and all the itune setup is done with products in "ready to submit" state. Im literally going crazy and dont know what to do :(
Thank you
In-App Purchase allows you to sell additional features and
functionality from within your iOS, macOS, and tvOS apps. If you wish
to offer in-app purchases in your applications, you must complete
several steps before you can do it. This document provides
step-by-step instructions for setting up and testing in-app purchase.
It also answers common questions about in-app purchase. The
"Agreements, Tax, and Banking Information" section describes all the
financial documents that must be completed.
Explanation

iOS Auto-Renewable Subscriptions Free Trial Not Being Indicated

I am having some issues adding a free trial to an existing Auto-Renewable IAP. From what I understand, you only need to add a "free trial" duration in iTunesConnect in your IAP for this to work. but I am not seeing any update in the description of the purchase indicating the free trial. When looking at other apps that do offer a free trial, the apple subscription dialog that pops up indicates:
Subscription Terms
Subscribe to <IAP NAME>. this subscription will start with a free trial lasting <TRIAL DURATION> after which youy will be charged <PRICE> on a <Duration> basis
while my own dialog still shows (not indicating that there is a free trial):
Subscription Terms
Subscrube to <IAP NAME>. This subscription will automatically renew every year for <PRICE>
Am I missing something in iTunes connect? Do I need to enable free trials another way?
What I have tried:
Using a sandbox account with an Auto-Renewable Sub that is not
cleared for sale
Using a fresh iTunes account on an Auto-Renewable
Sub that is cleared for sale and I have temporarily added the free
trial duration in iTunes connect
Using a sandbox account on an Auto-Renewable Sub that is cleared for
sale and I have temporarily added the free trial duration in iTunes
connect
Had the same issue. In my case, it even didn't show me the Subscription Terms alert only the Subscription Confirmation.
The problem seems to be with the Sandbox Testing account rather than with the implementation. You probably didn't have the trial set up in your IAP and then you created Sandbox tester and tested it like this. Then you added the free trial to the IAP, but the Sandbox tester has in cache or somewhere that this IAP doesn't have trial.
QUICK FIX: Create a new Sandbox Tester in iTunesConnect.

iOS Auto-Renewable Subscriptions with sandbox test account

I have changed my client's current non renewable subscription in app purchase to an auto-renewable one, and when I test it on my iPhone with a test sandbox account it shows the "" message and goes through successfully. I receive all the content I would normally get, but I noticed the amount of days that gets returned from the "daysRemainingOnSubscriptionForProductWithIdentifier: productIdentifier" increases by ~1400 every time i try to purchase it again. Also, it doesn't seem to show if it auto renews or not (6 months -> 30 minutes)... The subscriptions remain paid even when I close the app out and delete it. Is this all part of the sandbox testing and how it functions? Because the in app purchase is/was working fine, I just created a new auto-renewable in app purchase product in itunes connect and replaced the productID of the non renewing subscription with the new auto-renewable one in the .plist file. Does anyone have any experience with this?

Auto-renewable subscription issue in iOS 8 Application

When I used non-consumable in-app purchase product for testing after purchased it will give proper result that is You are already purchased but in Auto-renewable subscription it will always ask for purchase for the same user and for the same product. How to resolved it.
You can read apple's documentation to test Auto renewable subscriptions
https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnectInAppPurchase_Guide/Chapters/TestingInAppPurchases.html
A Side Note: In the consumable case it is prohibited that you forward the user to the store if he/she already purchased the item. Unless, he/she reinstalled the app. or installed it on a different device that didn't used to purchase the item in the first place.
Auto-renewale here is your answer.

Is an active Paid Applications Contract required for testing In App Purchase?

I was following a tutorial on In App Purchase which also shows how to test by using the sandbox environment. As I've tried to add an In App Purchase to my Application the iTunes Connect prompted following hint:
You do not have a contract in place for the price tier you selected. To make your app available on the App Store, you must have an active Paid Applications Contract.
Am I still able to test In App Purchase?
For adding and testing InApp purchase in your application you have to agreed on apple contract for paid application and provide your contact info , bank info, and tax info. You have to login in itunesconnect.apple.com and click on contract, tax and banking.
After providing above info you can see Manage In App Purchase Button on itunes connect web site and you can add your product.
You need to create a Paid Applications contract in the Contracts, Tax, & Banking Information section of iTunes Connect. You will need a bunch of info about your bank, and it will take many days, possibly weeks, for them to hand process the request.
Yes. if don't do it, Product count will always return "0" in your code.
You have to fill Series of question for "Tax form"(Non-Us resident).
Then 'Set up Contact' Even if you are Individually making apps i.e Not a company.
Fill your own contact details in every field.
Paid App Status turned "Active" Within Half hour.

Resources