Integration
To integrate the Widget as a WebView on iOS and Android, load the following URL: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: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:
To use these methods on Android and iOS, use the following snippets:
Test the integration
Load the WebView with apk_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.