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

To include the Fintoc WebView in your mobile application, pass the following query parameters to configure it, depending on the product you want to use:
Text
You can also include nested parameters in your query by using the following query string format:

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

Once the WebView is integrated, you can interact with its events using redirections.
onEvent (WebView)The onEvent event for WebView is enabled by default. Handle the fintocwidget://event/{event_name} redirection in your app so the Widget integration keeps working.
To use these methods on Android and iOS, use the following snippets:
iOS - adding fintocwidget URL SchemeBefore integrating the Fintoc Widget with your iOS app, add fintocwidget as a permitted URL scheme inside the appโ€™s Info.plist file. This is required for security reasons.

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.