Skip to main content

Integration

To integrate the Widget using a WebView on iOS and Android, use this URL:
Pass the widget configuration through the query string instead of client-side JavaScript.
Using React Native?Use the @fintoc/fintoc-react-native npm library to integrate the WebView into your application.

How it works

Pass the following query parameters to configure the Fintoc WebView for your product:
Text

Username object

To prefill a username and change the default values, send an object with these attributes:
Use the following query string format to include nested parameters:
Libraries such as qs can format a nested object.

Usage example

Use these client-side examples to initialize the WebView on Android and iOS. Client (Android, Kotlin)
Client (iOS, Swift)
The Swift example uses a webView method to handle links in the WebView. The example opens links in Safari, but you can open them in your application instead. After completing a Payment Initiation flow, the user can follow a link to download the transaction voucher. Allow the WebView to open links so the user can download the voucher.

WebView redirections

After integrating the WebView, handle its events through the following redirections:
onEvent (WebView)The onEvent event is enabled by default. Handle the onEvent redirection to prevent the Widget integration from breaking when the WebView receives this event.
Use these client-side examples to handle the redirections on Android and iOS. Client (Android, Kotlin)
Client (Android, Java)
Client (iOS, Swift)
Add the fintocwidget URL scheme on iOSBefore integrating the Fintoc Widget with your iOS application, add fintocwidget as a permitted URL scheme in the applicationโ€™s Info.plist file.
Client (iOS configuration)