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

  ) {
    channel = FlutterMethodChannel(name: "plugins.flutter.io/pay/apple_pay_button/\(viewId)",
                                   binaryMessenger: messenger)
    _view = UIView()
    super.init()
    channel.setMethodCallHandler(handle)
    

    if let applePayButton = self.applePayButton {
      applePayButton.translatesAutoresizingMaskIntoConstraints = false
      applePayButton.addTarget(self, action: #selector(handleApplePayButtonTapped), for: .touchUpInside)
      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
    }
  }
}
