Skip to main content
Embed the Fintoc Widget inside your iOS or Android app with a native WebView, configured through URL query parameters.

Integration

To integrate the Widget as a WebView on iOS and Android, load the following URL:
Pass the Widget configuration in the query string instead of in client-side JavaScript.
Using React Native?To integrate the WebView in a React Native app, use the @fintoc/fintoc-react-native library.

How it works

Configure the Fintoc WebView with query parameters for the product you want to use:
You can construct the query string separately before appending it to the WebView URL:

Usage example

The following snippets show the WebView set up on Android and iOS:
The Swift example includes a webView method that handles link clicks inside the WebView. In the example, links open in Safari, but you can customize this behavior. For example, links can open inside the same app. This matters because customers using Payment Initiation can click a link to download the transaction voucher after they finish the payment flow. Allow these links to open so the customer can download the voucher.

WebView redirections

After you integrate the WebView, you can interact with its events using redirects:
Handle onEvent in a WebViewThe WebView enables onEvent by default. Handle the fintocwidget://event/{event_name} redirect so your app receives Widget events.
To use these methods on Android and iOS, use the following snippets:
Add the fintocwidget URL scheme on iOSBefore integrating the Fintoc Widget with your iOS app, register fintocwidget as a URL scheme in the appโ€™s Info.plist file. This configuration allows your app to handle Widget redirects.

Test the integration

Load the WebView with a pk_test_ public key to run against the sandbox environment. Complete the flow with Fintocโ€™s test credentials, then confirm your app receives the fintocwidget://succeeded redirect.