@deposits/gw-onboarding-sdk
v0.0.9
Published
This onboarding SDK provides an interface to onboard the Gig wage merchant panel on an underlying application.
Downloads
7
Readme
Gig Wage Onboarding SDK
This onboarding SDK provides an interface to onboard the Gig wage merchant panel on an underlying application.
Installation
You can install this SDK from npm
npm install @deposits/gw-onboarding-sdk
Usage
This SDK exposes a default function that initializes the SDK initMerchantOnboarding
.
<template>
<button @click="onboardMerchant">Trigger merchant onboarding</button>
</template>
<script setup>
import initMerchantOnboarding from "@deposits/gw-onboarding-sdk"
const onboardMerchant = () => {
initMerchantOnboarding()
}
</script>
You can read a more thorough documentation about the usage and parameters here: https://deposits.notion.site/Gigwage-Merchant-Onboarding-SDK-4ab1473e00144538877c3c1f2fe334fb?pvs=4
Development
- The source code of this SDK is managed in the
src
folder. - You can test your code locally by running
npm link
and runningnpm link @deposits/gw-onboading-sdk
in the corresponding project you intend to test locally. - To deploy to npm, ensure you increase the patch version number in the
package.json
and runnpm publish