---
title: Product.PurchaseOption.SubscriptionRenewalBehavior
framework: storekit
role: symbol
role_heading: Enumeration
path: storekit/product/purchaseoption/subscriptionrenewalbehavior
---

# Product.PurchaseOption.SubscriptionRenewalBehavior

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

## Declaration

```swift
enum SubscriptionRenewalBehavior
```

## Overview

Overview Use the subscription renewal behavior values when you use the purchaseDate option to test your app in Xcode using StoreKit Test.

## Topics

### Renewal behaviors in the testing environment

- [Product.PurchaseOption.SubscriptionRenewalBehavior.cancelImmediately](storekit/product/purchaseoption/subscriptionrenewalbehavior/cancelimmediately.md)
- [Product.PurchaseOption.SubscriptionRenewalBehavior.renewUntilNow](storekit/product/purchaseoption/subscriptionrenewalbehavior/renewuntilnow.md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Setting options for StoreKit Testing in Xcode

- [purchaseDate(_:renewalBehavior:)](storekit/product/purchaseoption/purchasedate(_:renewalbehavior:).md)
- [codeOffer(referenceName:)](storekit/product/purchaseoption/codeoffer(referencename:).md)
- [promotionalOffer(id:)](storekit/product/purchaseoption/promotionaloffer(id:).md)
