finswich-checkout
v1.0.7
Published
## What is FinSwich
Downloads
16
Maintainers
Readme
Finswich checkout
What is FinSwich
With a single integration to our APIs, right on your app, your customers can send “instant transfers” to every corner of Africa & beyond.
How to Integrate
import FinSwich from "finswich-checkout";
const init_option = {
reference: "your_user_reference",
public_key: "your_finswich_api_public-key",
balance: "user_balance",
origin: "your_app_url",
};
optional_callback = "a callback function that will be called when the checkout is being closed"
const finSwich = new FinSwich(init_option, optional_callback);
const Close = () => {
finSwich.closeModal();
};
const Open = () => {
finSwich.openModal();
};
finSwich.modal "you can also check/listen to finSwich.modal to know when the modal is out of frame so you can perform certain actions"