I ordered a auto-renew product, After 5 minutes ,it become expired!
I think in Sandbox 5 minutes is equal to 1 month,
At the end of current subscription peroid(after 5 minutes), it should't be auto-renewed? but it become expired.
This is my experience as well. Auto-renewing in the sandbox environment is inconsistent. On some occasions I've seen a sandbox subscription auto-renew about 5 times before ending. But on other occasions it doesn't auto-renew at all. I assume these problems don't exist in the production environment.
In the sandbox environment, auto renewable subscriptions are much shorter than the actual time. From this answer:
Actual duration Sandbox duration
1 week 3 minutes
1 month 5 minutes
2 months 10 minutes
3 months 15 minutes
6 months 30 minutes
1 year 1 hour
And although this fact is not documented, according to some developers in Apple's developer forum (and my own experience), subscription will renew 5 times before you get 21006 error (subscription expired error). So if you have a 1 month subscription, it will be renewed every 5 minutes for 25 minutes. Don't rely on this fact though, as it's not officially documented and might change anytime.
I have experienced this as well, but if I kill the app from the multitasking tray (or stop the process in Xcode) and relaunch, I get an updated transaction with state "SKPaymentTransactionStatePurchased" that essentially renews the subscription. Check that out. It will at least give you something. Very frustrating that this is so inconsistent and not in alignment with the documentation.
来源:https://stackoverflow.com/questions/6504791/ios-auto-renew-expired-at-the-end-of-current-subscription-period