Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto-renewable subscriptions: How long a month is?

I got confused about some issues:

1: The one month duration of auto-renewable subscriptions is 30 days or does it depend on a natural month?

Because I can only test in sandbox mode,so the duration is just several minutes... Maybe Apple just simply calculates it like this: 2013\01\15 -> 2013\02\15 -> 2013\03\15. If so,the second issue comes up

2: For example: I buy a monthly auto-renewable subscriptions at 2013\03\31 ,because 2013\04 only has 30 days, then what is the expires_date of my subscriptions? 2013\04\30 or 2013\05\01 or other date ?

like image 523
Wu Joiningss Avatar asked Mar 14 '13 14:03

Wu Joiningss


People also ask

How many days is a monthly subscription?

The amount of time between a monthly billing interval is one month. Your subscription will renew each subsequent month on the same numerical day you started on.

What is auto renewable subscription?

Auto-renewable subscriptions provide access to content, services, or premium features in your app on an ongoing basis. They automatically renew at the end of their duration until the user chooses to cancel.

What does it mean when a subscription is renewed?

Subscription renewal is the process each customer goes through when continuing their subscription into the next billing cycle. Subscription renewals happen through the following steps: Generating an order record within the subscription billing platform to track the renewal.


1 Answers

It's adding 1 month, not 30 days. The number of days in 1 month varies. So purchasing a subscription on 3/31 would end on 4/30.

You can use NSDate, NSCalendar, and NSDateComponents to add a month to a date and see how long it will last. More info here: Modifying NSDate to represent 1 month from today

like image 159
Aaron Brager Avatar answered Oct 20 '22 14:10

Aaron Brager