# ThreeDSWKNavigationHelper

    public final class ThreeDSWKNavigationHelper : NSObject, ThreeDSWKNavigationHelping

    extension ThreeDSWKNavigationHelper: WKNavigationDelegate

This class helps handle the 3DS challenge for a user using a webview.

Show on GitHub

- `delegate`

  #### Declaration

  Swift

      weak public var delegate: ThreeDSWKNavigationHelperDelegate?

  Show on GitHub
- `init(successURL:failureURL:)`

  #### Declaration

  Swift

      public convenience init(successURL: URL?, failureURL: URL?)

  Show on GitHub

### WKNavigationDelegate

- `webView(_:decidePolicyFor:decisionHandler:)`

  Initialise the 3DS redirect URL from the challenge, either for a success or failure.

  #### Declaration

  Swift

      public func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Void)

  Show on GitHub
- `webView(_:didFinish:)`

  #### Declaration

  Swift

      public func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!)

  Show on GitHub
- `webView(_:didFail:withError:)`

  #### Declaration

  Swift

      public func webView(_ webView: WKWebView, didFail navigation: WKNavigation!, withError error: Error)

  Show on GitHub