<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/Product/PurchaseOption/SubscriptionRenewalBehavior",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "s:8StoreKit7ProductV14PurchaseOptionV0aB4TestE27SubscriptionRenewalBehaviorO"
  },
  "title" : "Product.PurchaseOption.SubscriptionRenewalBehavior"
}
-->

# Product.PurchaseOption.SubscriptionRenewalBehavior

Renewal options for auto-renewable subscriptions that you purchase in the testing environment.

```
enum SubscriptionRenewalBehavior
```

## Overview

Use the subscription renewal behavior values when you use the <doc://com.apple.documentation/documentation/StoreKitTest/SKTestTransaction/purchaseDate> option to test your app in Xcode using <doc://com.apple.documentation/documentation/StoreKitTest>.

## Topics

### Renewal behaviors in the testing environment

[`case cancelImmediately`](/documentation/StoreKit/Product/PurchaseOption/SubscriptionRenewalBehavior/cancelImmediately)

A subscription-renewal behavior in the testing environment that cancels the subscription, resulting in only one subscription period.

[`case renewUntilNow`](/documentation/StoreKit/Product/PurchaseOption/SubscriptionRenewalBehavior/renewUntilNow)

A subscription-renewal behavior in the testing environment that allows the subscription to renew continuously, up to the current date.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Decodable`](/documentation/Swift/Decodable)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`Encodable`](/documentation/Swift/Encodable)

---

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)