<!--
{
  "availability" : [
    "iOS: 15.4.0 -",
    "iPadOS: 15.4.0 -",
    "macCatalyst: 15.4.0 -",
    "macOS: 12.3.0 -",
    "tvOS: 15.4.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKitTest",
  "identifier" : "/documentation/StoreKitTest/SKTestSession/billingGracePeriodIsEnabled",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "StoreKit Test"
    ],
    "preciseIdentifier" : "c:objc(cs)SKTestSession(py)billingGracePeriodEnabled"
  },
  "title" : "billingGracePeriodIsEnabled"
}
-->

# billingGracePeriodIsEnabled

A Boolean value that indicates whether the test environment simulates a billing grace period for auto-renewable subscriptions.

```
var billingGracePeriodIsEnabled: Bool { get set }
```

## Discussion

The default value is `false`. The value of this property has no effect when [`shouldEnterBillingRetryOnRenewal`](/documentation/StoreKitTest/SKTestSession/shouldEnterBillingRetryOnRenewal) is `false`.

In the production environment, you indicate whether your app supports a billing grace period by setting it in App Store Connect. In the testing environment, you indicate that your app supports it by setting the [`billingGracePeriodIsEnabled`](/documentation/StoreKitTest/SKTestSession/billingGracePeriodIsEnabled) property to `true`.

To test how your app handles a grace period when a subscription enters a billing retry state, enable [`shouldEnterBillingRetryOnRenewal`](/documentation/StoreKitTest/SKTestSession/shouldEnterBillingRetryOnRenewal) and [`billingGracePeriodIsEnabled`](/documentation/StoreKitTest/SKTestSession/billingGracePeriodIsEnabled). All subscriptions fail to renew with a simulated billing issue until you set [`shouldEnterBillingRetryOnRenewal`](/documentation/StoreKitTest/SKTestSession/shouldEnterBillingRetryOnRenewal) to `false`. To resolve a billing issue in the testing environment, call [`resolveIssueForTransaction(identifier:)`](/documentation/StoreKitTest/SKTestSession/resolveIssueForTransaction(identifier:)).

For more information about billing grace periods and enabling them in the production environment, see <doc://com.apple.documentation/documentation/StoreKit/reducing-involuntary-subscriber-churn> and [Enable billing grace period for auto-renewable subscriptions](https://help.apple.com/app-store-connect/#/dev58bda3212).

Changing this property overrides its setting in the StoreKit configuration file for this test session. Call [`resetToDefaultState()`](/documentation/StoreKitTest/SKTestSession/resetToDefaultState()) to revert all settings to those in the configuration file.

---

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)