---
title: "Migrer le SDK iOS Adapty vers la v3.15"
description: "Migrez vers le SDK iOS Adapty v3.15 pour de meilleures performances et de nouvelles fonctionnalités de monétisation."
---

Si vous utilisez le [Paywall Builder](adapty-paywall-builder) en [mode Observer](observer-vs-full-mode), à partir du SDK iOS 3.15, vous devez implémenter une nouvelle méthode `observerModeDidInitiateRestorePurchases(onStartRestore:onFinishRestore:)`. Cette méthode offre un meilleur contrôle sur la logique de restauration, vous permettant de gérer les restaurations d'achats dans votre flow personnalisé. Pour tous les détails d'implémentation, consultez [Afficher les paywalls du Paywall Builder en mode Observer](ios-present-paywall-builder-paywalls-in-observer-mode).

```diff showLineNumbers
func observerMode(didInitiatePurchase product: AdaptyPaywallProduct,
                 onStartPurchase: @escaping () -> Void,
                 onFinishPurchase: @escaping () -> Void) {
      // use the product object to handle the purchase
      // use the onStartPurchase and onFinishPurchase callbacks to notify AdaptyUI about the process of the purchase
}

+ func observerModeDidInitiateRestorePurchases(onStartRestore: @escaping () -> Void,
+                                            onFinishRestore: @escaping () -> Void) {
+      // use the onStartRestore and onFinishRestore callbacks to notify AdaptyUI about the process of the restore
+ }
```