Skip to main content

Integration

Load the following URL to integrate the Widget in an iOS or Android WebView:
Pass the Widget configuration in the query string instead of using client-side JavaScript.
Using React Native?Use the @fintoc/fintoc-react-native npm library to integrate the WebView into your application.

How it works

Configure the Fintoc WebView by passing the parameters for your product in the query string:
Text
Build the query string in the following format:

Usage example

Use the following Android and iOS examples to initialize the WebView:
The Swift example includes a webView method that handles links inside the WebView. The example opens links in Safari, but you can open them inside your application instead. When your customer completes a Payment Initiation flow, they can select a link to download the transaction receipt. Allow the WebView to open these links.

WebView redirections

Handle Widget events through the following WebView redirections:
onEvent (WebView)WebView integrations receive onEvent redirections by default. Handle these redirections to prevent them from interrupting your Widget integration.
Use the following Android and iOS examples to handle these redirections:
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.