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

# Product.PurchaseOption.SubscriptionRenewalBehavior.cancelImmediately

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

## Declaration

```swift
case cancelImmediately
```

## Discussion

Discussion Choose this option for test cases that require an auto-renewable subscription that won’t renew.

## See Also

### Renewal behaviors in the testing environment

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