# ThreedsWebViewControllerDelegate

    public protocol ThreedsWebViewControllerDelegate : AnyObject

Methods to handle the response in the 3ds web view

Show on GitHub

- `onSuccess3D()` Default implementation

  Called if the response is successful

  #### Default Implementation

  #### Declaration

  Swift

      @available(*, deprecated, renamed: "threeDSWebViewControllerAuthenticationDidSucceed(_:token:﹚")
      func onSuccess3D()

  Show on GitHub
- `onFailure3D()` Default implementation

  Called if the response is unsuccesful

  #### Default Implementation

  #### Declaration

  Swift

      @available(*, deprecated, renamed: "threeDSWebViewControllerAuthenticationDidFail(_:﹚")
      func onFailure3D()

  Show on GitHub
- `threeDSWebViewControllerAuthenticationDidSucceed(_:token:)` Default implementation

  Called upon successful 3D Secure authentication.

  #### Default Implementation

  #### Declaration

  Swift

      func threeDSWebViewControllerAuthenticationDidSucceed(_ threeDSWebViewController: ThreedsWebViewController,
                                                            token: String?)

  #### Parameters

  `threeDSWebViewController` | The `ThreedsWebViewController` instance calling this method.
  `token` | The token extracted from the success URL.

  Show on GitHub
- `threeDSWebViewControllerAuthenticationDidFail(_:)` Default implementation

  Called upon unsuccessful 3D Secure authentication.

  #### Default Implementation

  #### Declaration

  Swift

      func threeDSWebViewControllerAuthenticationDidFail(_ threeDSWebViewController: ThreedsWebViewController)

  #### Parameters

  `threeDSWebViewController` | The `ThreedsWebViewController` instance calling this method.

  Show on GitHub