             else {
                 // error
                 self.delegate?.HPPManagerFailedWithError?(error as NSError?)
-                self.swiftPrivateDelegate?.HPPSwiftManagerFailedWithError(error)
+                self.genericDelegate?.HPPManagerFailedWithError(error)
                 self.hppViewController.dismiss(animated: true, completion: nil)
                 return
             }
             
             // success
             self.delegate?.HPPManagerCompletedWithResult?(decodedResponse as! Dictionary <String, String>)
-            self.swiftPrivateDelegate?.HPPSwiftManagerCompletedWithResult(decodedResponse)
+            self.genericDelegate?.HPPManagerCompletedWithResult(decodedResponse)
         })
         dataTask.resume()
 

     */
    fileprivate var hppViewController: HPPViewController!
    
    open func setGenericDelegate<D: HPPSwiftManagerDelegate>(_ delegate: D) where D.PaymentServiceResponse == T {
        self.swiftPrivateDelegate = AnyHPPSwiftManagerDelegate(delegate)
    }

    /**

                // error
                UIApplication.shared.isNetworkActivityIndicatorVisible = false
                self.delegate?.HPPManagerFailedWithError!(error as NSError)
                self.genericDelegate?.HPPManagerFailedWithError(error)
                self.hppViewController.dismiss(animated: true, completion: nil)
            }
        })
