Skip to main content

Plain HTML integration

Include the Fintoc script in the HTML of each page that uses the Widget.
window.onloadWait for the browser to load the script before calling its functions. Use the native window.onload browser event to avoid errors.

ES module integration

You can also use the @fintoc/fintoc-js library to load the Widget as an ES module through npm.
The library exports the asynchronous getFintoc method, which returns the Fintoc object.

Methods of the Widget object

After you create a widget object, use its open, hide, and destroy methods to interact with it:
How to use the widget.destroy() methodFintoc.create(args) embeds an iframe in your application. When developing a single-page application (SPA), call destroy to remove this iframe. To reopen the Widget, create a new instance with Fintoc.create(args).

How to set up and deploy the widget

The setup and deployment options depend on the product you use. Include the Fintoc script in your application or call getFintoc from the @fintoc/fintoc-js library. You can then use the Fintoc class to connect to a financial institution from your application.
Call open() to display the Widget.

Payment Initiation

Javascript

Movements

Javascript

Direct Debit

Javascript

Use the following parameters to configure the Widget:
Use the Widget callbacks and events correctlyDo not use the onSuccess, onExit, or onEvent callbacks to determine the resource state. Use these callbacks only to manage your frontend flow while your backend confirms the state through webhooks or a token exchange. You can also use frontend events to measure Widget usage, but do not rely on these events to determine whether Fintoc created the resource.

Username and holderId objects

To prefill a username or holderId and customize the default values, pass an object with these attributes:
JSON
Prefilling can improve payment conversionFintoc testing shows that prefilling these values can increase payment conversion by approximately 3%.