Overview
We’ll use WKWebView to add Subtotal Link into your iOS application.Create a view with a button
This guide creates a view with a button that launches Subtotal Link in a WebView. The WebView handles the entire account linking process.Launch Subtotal Link in a WKWebView
Create a WKWebView to display Subtotal Link. The WKWebViewConfiguration shown below is required for Subtotal Link to work properly.redirect_url when users complete or exit linking, add a Coordinator with WKNavigationDelegate and implement webView(_:decidePolicyFor:decisionHandler:) to detect your URL scheme and dismiss the WebView.