I am developing an app and would like to have it setup to use an annual subscription. I have a couple of questions about how it works with the App Store. I want to make the app free with a paid subscription. I assume that this isn't a problem. For this question, lets say the subscription price is $10 (I know in the app store it'll probably be 9.99 but for easy math, I'm rounding up a penny). If someone purchases an annual subscription, uses my app for 6 months, then decides to Cancel, how does Apple handle this? Does a $5 refund get sent back to the customer? If so, then my app would somehow need to know this and turn itself off. If no refund is given, then my app probably should continue to work for the remainder of the year, as the customer paid for a full year.
As I haven't developed a subscription based app before (as you can plainly see from this question), I'm looking for some advice on how to set this up properly, before I get too far into the development of the app. Any guidance would be appreciated.
TIA