             }
         }
     }
+    
+    func paymentQueueRestoreCompletedTransactionsFinished(_ queue: SKPaymentQueue) {
+        self.statusChange(status: "Ads Free successfully restored!", enableActivityMonitor: false)
+        self.successfulPayment()
+    }
 
     // MARK: - Button handlers methods
     @IBAction func buttonActionClicked(_ sender: Any) {

    }
    
    func actionButtonChange(message:String, enable:Bool) {
        if (enable == false || (self.model?.adsFree)!) {
            self.buttonAction.setTitle("", for: UIControlState.normal)
            self.buttonAction.layer.borderColor = UIColor.clear.cgColor
            self.buttonAction.tintColor = UIColor.clear

            self.transactionInProgress = true
            self.actionButtonChange(message: "", enable: false)
            
            self.statusChange(status:"Restoring Ads Free from App Store ...", enableActivityMonitor:true)
            SKPaymentQueue.default().restoreCompletedTransactions()
        }
    }
}
