     if let applePayButton = self.applePayButton {
       applePayButton.translatesAutoresizingMaskIntoConstraints = false
       applePayButton.addTarget(self, action: #selector(handleApplePayButtonTapped), for: .touchUpInside)
-      view.addSubview(applePayButton)
+      _view.addSubview(applePayButton)
       
-      applePayButton.topAnchor.constraint(equalTo: view.topAnchor).isActive = true
-      applePayButton.bottomAnchor.constraint(equalTo: view.bottomAnchor).isActive = true
-      applePayButton.leftAnchor.constraint(equalTo: view.leftAnchor).isActive = true
-      applePayButton.rightAnchor.constraint(equalTo: view.rightAnchor).isActive = true
+      applePayButton.topAnchor.constraint(equalTo: _view.topAnchor).isActive = true
+      applePayButton.bottomAnchor.constraint(equalTo: _view.bottomAnchor).isActive = true
+      applePayButton.leftAnchor.constraint(equalTo: _view.leftAnchor).isActive = true
+      applePayButton.rightAnchor.constraint(equalTo: _view.rightAnchor).isActive = true
     }
   }
 }

  }
  
  func view() -> UIView {
    return view
  }
  
  func createApplePayView(){

}

class ApplePayButtonView: NSObject, FlutterPlatformView {
  private var _view: UIView
  var type: NSNumber?
  var style: NSNumber?
  
