Integrating the Checkout on your App (Frontend)
This allows you to successfully embedded our checkout. This is the frontend integration.
There are 3 ways of integrating the inline checkout:
Package Installer (NPM and Yarn) for React
Inserting script tag for Vanilla Javascript applications
Packages for Flutter and dart applications
1. Integrating Finswich checkout via NPM or Yarn
Install our checkout using the appropriate package installer command
NPM
npm i finswich-checkoutYarn
Yarn add finswich-checkout
Import the Finswich from the downloaded "finswich-checkout". Please follow the code above.
2. Integrating the Finswich Checkout on your Vanilla Javascript app
Integrating our checkout for Flutter and Dart Applications (Mobile)
3. Steps for integrating Finswich Checkout via Flutter
Visit the link to the flutter package
On the flutter package website they click the installing tab

Please follow the instructions on the page.
After installing and adding the finswich package to your code, here is a sample dart code to complete your set up
The table below helps to explain the objects passed to the inline JS during initialiazation
reference
This is your user's reference on your platform
String
public_key
Your live public key from Finswich app
String
balance
the user's balance on your app
Number
origin
your whitelisted IP saved on the Finswich platform
String
4. Pseudocode for Integrating Finswich Checkout in Application (Native iOS & Android)
Introduction
This pseudocode outlines the implementation of an iframe for the Finswich Checkout system. It dynamically configures the iframe's parameters, listens for messages from the iframe, handles closure events, and updates the UI accordingly.
This documentation is designed for developers who want to understand and implement the integration in their Mobile applications.
Last updated