---
title: "winBackOffer(_:)"
framework: storekit
role: symbol
role_heading: Type Method
path: "storekit/product/purchaseoption/winbackoffer(_:)"
---

# winBackOffer(_:)

Sets a win-back offer to apply to the purchase.

## Declaration

```swift
static func winBackOffer(_ offer: Product.SubscriptionOffer) -> Product.PurchaseOption
```

## Parameters

- `offer`: The doc://com.apple.storekit/documentation/StoreKit/Product/SubscriptionOffer instance that represents the win-back offer to apply to the purchase.

## Discussion

Discussion To test win-back offers in Xcode, set up the offers in your StoreKit configuration file. For more information, see Setting up StoreKit Testing in Xcode.

## See Also

### Setting the purchase options

- [appAccountToken(_:)](storekit/product/purchaseoption/appaccounttoken(_:).md)
- [promotionalOffer(offerID:keyID:nonce:signature:timestamp:)](storekit/product/purchaseoption/promotionaloffer(offerid:keyid:nonce:signature:timestamp:).md)
- [promotionalOffer(offerID:signature:)](storekit/product/purchaseoption/promotionaloffer(offerid:signature:).md)
- [quantity(_:)](storekit/product/purchaseoption/quantity(_:).md)
