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
Yarn
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
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
Key | Description | Type |
---|---|---|
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 |
Last updated