How to test Auto Renewal In App Purchase Model
<p><br><br>
I have to implement In App Purchase Auto-Renewal Model in my app. I have created a test user and getting the response from App Store for subscription. When I tap "<code>Confirm</code>" then sometimes its state becomes <code>SKPaymentTransactionStatePurchased</code> and sometimes it becomes <code>SKPaymentTransactionStateRestored</code>. My problem is that I want to prevent user to use the app if he has not subscribed the app. For that I am trying to track the state of "<code>SKPaymentTransaction</code>" so that I can allow or disallow the user to use the app. Such that, if the state is <code>SKPaymentTransactionStatePurchased</code>, only then he could be able to use the app, but I don't understand how its state changes.</p>

<p>One more thing, When I tap on the "<code>Settings</code>" to manage my Auto-Renewal, it shows me that my app will be expired on the current date i.e., today itself, but when I tapped on the "<code>Confirm</code>" button to subscribe my app for one month then expiry date should be after one month. I don't understand how this whole process is working.</p>

<p>I have read whole documentation of Auto Renewal, but didn't get any help from that. </p>

<p>Please help!</p>
