How to determine the subscription end date if a user cancels their subscription?

kenansd
Contributor
Contributor
When I query the subscription details https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions_get there is a start_time and a next_billing_time provided. If a user hard cancels, we would like to provide our service to the user for the remainder of the subscription term. For example, if a user purchases a monthly subscription, uses the service for 3 months, and then cancels at the start of the 4th month they should continue to get access to our service until the 4th month is complete. What is the preferred way to determine the date the subscription should end? Is it required to calculate the end date from the start_time and the number of cycles completed? Or is there another method to determine this date?
 
If calculating the end date from the cycles_completed and the start time, is it effective to use 30 days as the monthly term duration or is a different calculation required?
 
Similarly is there a way to determine the start date for the current cycle?
Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.