@deposits/gw-onboarding-sdk
v0.1.1
Published
This onboarding SDK provides an interface to onboard the Gig wage merchant panel on an underlying application.
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-sdkUsage
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
srcfolder. - You can test your code locally by running
npm linkand runningnpm link @deposits/gw-onboading-sdkin the corresponding project you intend to test locally. - To deploy to npm, ensure you increase the patch version number in the
package.jsonand runnpm publish
