Void) { if let serverTrust = challenge.protectionSpace.serverTrust { completionHandler(.useCredential, "> Void) { if let serverTrust = challenge.protectionSpace.serverTrust { completionHandler(.useCredential, "> Void) { if let serverTrust = challenge.protectionSpace.serverTrust { completionHandler(.useCredential, ">
import UIKit
import WebKit

class WebViewController: UIViewController, WKUIDelegate, WKNavigationDelegate {
    @IBOutlet weak var webView: WKWebView!

    override func loadView() {
        let webConfiguration = WKWebViewConfiguration()
        webView = WKWebView(frame: .zero, configuration: webConfiguration)
        webView.uiDelegate = self
        webView.navigationDelegate = self
        view = webView
    }

    override func viewDidLoad() {
        super.viewDidLoad()
        let myURL = URL(string: "<https://global.transak.com?apiKey=4fcd6904-706b-4aff-bd9d-77422813bbb7&defaultCryptoCurrency=ETH>")
        let myRequest = URLRequest(url: myURL!)
        webView.load(myRequest)
    }

    func webView(_ webView: WKWebView, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
        if let serverTrust = challenge.protectionSpace.serverTrust {
            completionHandler(.useCredential, URLCredential(trust: serverTrust))
        }
    }
}

Query Parameters

You can pass several arguments as query parameters to customize the widget further.

Follow the below link to get the API Key

WebSocket

Using the WebSocket you can track the order easily