<!--
{
  "documentType" : "article",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/testing-disabling-auto-renew",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "Testing disabling auto-renew"
}
-->

# Testing disabling auto-renew

Verify that your app receives subscription updates when a user cancels a subscription by verifying the receipt or receiving a notification.

## Discussion

Customers can manage their active subscriptions, as well as their expired subscriptions for up to a year after expiry, in the Subscriptions page on iOS, tvOS, iPadOS, and macOS. In this test scenario, the customer cancels a subscription, which disables auto-renew.

To set up for this test, purchase an auto-renewable subscription for the Sandbox Apple Account.

### Begin testing

To test disabling auto-renew:

1. On the test iOS device, open Settings > Developer.
2. In the Sandbox Account section, tap your highlighted Sandbox Apple Account, and tap Manage.
3. In the sandbox Subscriptions page, select the subscription product that you want to cancel.
4. Tap the Cancel Subscription button.

Verify the change in the subscription status using either of these two methods:

- If you’ve configured App Store Connect settings to receive App Store server notifications, your server receives the <doc://com.apple.documentation/documentation/AppStoreServerNotifications/notification_type> `DID_CHANGE_RENEWAL_STATUS` each time the subscription’s auto-renew status changes. For more information, see <doc://com.apple.documentation/documentation/AppStoreServerNotifications/enabling-app-store-server-notifications>.
- Verify the receipt by calling <doc://com.apple.documentation/documentation/AppStoreReceipts/Verify-Receipt> with the latest receipt. Check that the <doc://com.apple.documentation/documentation/AppStoreReceipts/auto_renew_status> property of the <doc://com.apple.documentation/documentation/AppStoreReceipts/responseBody/Pending_renewal_info-data.dictionary> object changes to `0`. The `auto_renew_status_change_date_ms` property of `responseBody` contains the timestamp of the change.

### Test reenabling the subscription renewal

After disabling auto-renew, reenable the subscription on the same Manage Subscriptions page by tapping the subscription and confirming payment.

Verify the change in the subscription status using either of these two methods:

- If you’ve configured App Store Connect settings to receive App Store server notifications, your server receives the <doc://com.apple.documentation/documentation/AppStoreServerNotifications/notification_type> `DID_CHANGE_RENEWAL_STATUS` each time the subscription’s auto-renew status changes. For more information, see <doc://com.apple.documentation/documentation/AppStoreServerNotifications/enabling-app-store-server-notifications>.
- Verify the receipt by calling <doc://com.apple.documentation/documentation/AppStoreReceipts/Verify-Receipt> with the latest receipt. Check that the <doc://com.apple.documentation/documentation/AppStoreReceipts/auto_renew_status> property of the <doc://com.apple.documentation/documentation/AppStoreReceipts/responseBody/Pending_renewal_info-data.dictionary> object changes to `1`. The `auto_renew_status_change_date_ms` property of `responseBody` contains the timestamp of the change.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)