@woflowinc/onboard-sdk
v0.1.58
Published
Woflow merchant onboarding
Downloads
12
Readme
@woflowinc/onboard-sdk
Install
npm i @woflowinc/onboard-sdk
Getting started
Make sure you have your JWT token and public key
Embed woflow onboarding iframe
Use the following code to embed your Portal into your app:
import { WoflowOnboarding } from "@woflowinc/onboard-sdk";
// To initialize pass JWT token and public key - authenticate platform
const woflow = new WoflowOnboarding("JWT token", "Publick key");
// use this wherever you need to trigger an import
woflow.openIframe({
onData: (data) => {
/* handle submitted data here */
console.log("data from woflow iframe:");
console.log(data.data);
},
});
This should open the iframe to woflow onboarding platform where user can finish the onboarding, submit menu, etc.