Configuring the Inline Checkout

This allows you to successfully embedded our checkout.
Please find below the code needed to successfully integrate our checkout plugin. This code is to be added to your website, or mobile app.
Website Integration
1
<!DOCTYPE html>
2
<html lang="en">
3
4
<head>
5
<meta charset="UTF-8" />
6
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
8
<title>Static Template</title>
9
</head>
10
11
<body>
12
<div class="container">
13
<h2>FINSWICH CHECKOUT</h2>
14
<br />
15
<br />
16
<button onclick="Open.apply(null, [init_option])" class="btn btn-danger">
17
Open FinSwich Checkout!
18
</button>
19
</div>
20
21
22
<script src="https://exchanger-api.fuspay.finance/finswich/inline.js"></script>
23
24
<script>
25
26
const init_option = {
27
reference: "emcodeApp001Live",
28
public_key: "live_public_f1f453b175384d3d08509809e9100823120dbXUnU8daZBBM5Cye3F0AryQVhbB5DWRwF9S0p5spFdBFIy8gZupLuwO5n2sO29nPN16875",
29
balance: "2400",
30
origin: "https://exchanger-api.fuspay.finance",
31
base: "/?reference=emcodeApp001Live&public_key=live_public_f1f453b175384d3d08509809e9100823120dbXUnU8daZBBM5Cye3F0AryQVhbB5DWRwF9S0p5spFdBFIy8gZupLuwO5n2sO29nPN16875&balance=2400&origin=https://exchanger-api.fuspay.finance",
32
domain: "https://fin-swich-checkout.vercel.app",
33
};
34
35
//Open - Is any function that can call the JS $_fswich function
36
function Open(init_option) {
37
//: function called from finswich inline js that is embeded on this page
38
if (typeof $_fswich == "function") {
39
$_fswich(init_option);
40
}
41
}
42
43
// window.onload = Open.apply(null, [init_option]);
44
45
</script>
46
47
</body>
48
49
</html>
Values needed to initialize the checkout. Check below for key-value description.
Integrating our checkout for Mobile
Integrating our checkout to your flutter mobile app
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 you platform
String
public_key
this is the unique identier for an app
String
balance
the user's balance on your app
Number
origin
your whitelisted IP saved on the Finswich platform
String
base
Query string containing all the keys and values of the init object
String
domain
the domain where our checkout is being hosted
String
Last modified 4mo ago