title: How to implement 3D Secure (Verified by Visa / MasterCard SecureCode) in Flutter?
body: <p>The existing implementation 3DS is such that during checkout and payment stage, it involves redirecting the customer away from your app, to a bank / card issuer website where the customer can enter their previously set-up password to authenticate that they are indeed the card holder. The website will then redirect the customer back to your website with information needed to complete the transaction. 
  How can I read the response of the bank server to the redirection? I tried to do this via the webview_flutter, but can only get URL redirects.</p>
  
  <pre class="lang-dart prettyprint-override"><code>Widget _view3ds(PaymentAnswer answer) {
    final url = answer.model['AcsUrl'];
    return Scaffold(
      appBar: AppBar(
        title: const Text('Pay'),
      ),
      body: WebView(
        initialUrl: url,
        initialPostParameters: answer.paramPost3DS(),
        javascriptMode: JavascriptMode.unrestricted,
        onPageFinished: _pageFinished
      ),
    );
  }
  
  void _pageFinished(String url)  {
    print(url);
    url.response ??? // Is there a way to get to the server response? Maybe there is another plugin that allows this?
  }
  </code></pre>
  
  <p>There is a swift code that works great:</p>
  
  <pre class="lang-swift prettyprint-override"><code>/// Handle result from 3DS form
      func webView(_ webView: UIWebView, shouldStartLoadWith request: URLRequest, navigationType: UIWebViewNavigationType) -&gt; Bool {
          let urlString = request.url?.absoluteString
          if (urlString == Constants.cloudpaymentsURL) {
              var response: String? = nil
              if let aBody = request.httpBody {
                  response = String(data: aBody, encoding: .ascii)
              }
              let responseDictionary = parse(response: response)
              webView.removeFromSuperview()
              post3ds(transactionId: responseDictionary?["MD"] as! String, paRes: responseDictionary?["PaRes"] as! String)
              return false
          }
          return true
      }
  </code></pre>
  
  <p>Can i get something like this on pure flutter?</p>