   ) {
     channel = FlutterMethodChannel(name: "plugins.flutter.io/pay/apple_pay_button/\(viewId)",
                                    binaryMessenger: messenger)
-    _view = UIView()
+    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
    }
  }
}

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