-1

I'm working with IAP Auto-Renewable Subscription, my question is if a user cancels the subscription then how will my server be notified.?

  • Possible duplicate of [Notification of cancellation of auto-renewal for an in-app purchase](http://stackoverflow.com/questions/6302517/notification-of-cancellation-of-auto-renewal-for-an-in-app-purchase) – Syed Qamar Abbas Dec 27 '16 at 13:39

1 Answers1

0

if the receipt status is 21006 and there is a key named cancellation_date, then it's a cancellation, you can find the new expiration date in that key but it's a formatted date, if you need a better value to parse check for receipt['latest_expired_receipt_info']['cancellation_date_ms'] same as expires_date

There is more info here http://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/RenewableSubscriptions/RenewableSubscriptions.html

Syed Qamar Abbas
  • 3,637
  • 1
  • 28
  • 52