Skip to main content

KYB UI component

KYBKYB Know Your Business - the identity verification process for corporate identities. This process allows you to seamlessly and securely verify your business customer's identity. Weavr will ask users to submit the necessary information and documentation so that they can get approved by financial providers. is one of the steps required to onboard buyersBuyer A business entity in the Payment Run solution that can be provided with financial services to perform embedded payment runs. Buyers are onboarded through a KYB process and can create payment runs to pay their suppliers. They have roles such as Admin, Controller, and Creator. onto your application. We provide a KYBKYB Know Your Business - the identity verification process for corporate identities. This process allows you to seamlessly and securely verify your business customer's identity. Weavr will ask users to submit the necessary information and documentation so that they can get approved by financial providers. component that you can embed in your application. This lets you provide a seamless experience to your user while capturing the required documentation to verify the buyerBuyer A business entity in the Payment Run solution that can be provided with financial services to perform embedded payment runs. Buyers are onboarded through a KYB process and can create payment runs to pay their suppliers. They have roles such as Admin, Controller, and Creator..

info

BuyersBuyer A business entity in the Payment Run solution that can be provided with financial services to perform embedded payment runs. Buyers are onboarded through a KYB process and can create payment runs to pay their suppliers. They have roles such as Admin, Controller, and Creator. need to be onboarded and authenticated on our platform. You can find more information on how to onboard your BuyerBuyer A business entity in the Payment Run solution that can be provided with financial services to perform embedded payment runs. Buyers are onboarded through a KYB process and can create payment runs to pay their suppliers. They have roles such as Admin, Controller, and Creator. customers here.

1. Get the KYB reference

Initiate the KYBKYB Know Your Business - the identity verification process for corporate identities. This process allows you to seamlessly and securely verify your business customer's identity. Weavr will ask users to submit the necessary information and documentation so that they can get approved by financial providers. process by invoking the following API from your application. This action generates a KYBKYB Know Your Business - the identity verification process for corporate identities. This process allows you to seamlessly and securely verify your business customer's identity. Weavr will ask users to submit the necessary information and documentation so that they can get approved by financial providers. reference that you can use when making a call to the corporateKyb component to display the KYBKYB Know Your Business - the identity verification process for corporate identities. This process allows you to seamlessly and securely verify your business customer's identity. Weavr will ask users to submit the necessary information and documentation so that they can get approved by financial providers. flow.

POST/buyers/kybTry it

2. Using the KYB Component

To display the component on the screen, it's necessary to mount it to the DOM. This involves creating a wrapping element that serves as the container for injecting the secure frame. Be sure to assign an id to the HTML element.

tip

To use Weavr UI components, you must first set up our UI library in your application and ensure that you have an authentication token set as per instruction.

corporateKyb(referenceId);
ParameterTypeRequired?Description
referenceIdstringRequiredThe reference key retrieved from the previous API call.
<!--kyb.html-->
<div id="kyb-example"></div>
// secure-kyb.js
weavrComponents.capture.corporateKyb(referenceId);

Mounting

To display the component on the screen, it's necessary to mount it to the DOM. This involves creating a wrapping element that serves as the container for injecting the secure frame. Be sure to assign an id to the HTML element.

// secure-kyb.js
const kyb = weavrComponents.capture.corporateKyb(referenceId);
kyb.mount(selector, options);
ParameterTypeRequired?Description
selectorstringRequiredThe id of the element that will be used to mount to.
optionsobjectRequiredUsed to customize the flow and any styles available .

Property Definitions

options

PropertyTypeRequired?Description
langstringOptionalSpecifying the language the KYBKYB Know Your Business - the identity verification process for corporate identities. This process allows you to seamlessly and securely verify your business customer's identity. Weavr will ask users to submit the necessary information and documentation so that they can get approved by financial providers. flow is be displayed in (ISO 639-1 format) (defaults to english)
customCssstringOptionalSpecify a CSS file containing styles to brand the UI elements shown in the flow.
customCssStrstringOptionalSpecify a string of plain text styles to brand the UI elements shown in the flow.
emailstringOptionalSpecifying the applicant email.
mobilestringOptionalSpecifying the applicant mobile.
onMessagefunctionOptionalReceive updates on the status of the KYBKYB Know Your Business - the identity verification process for corporate identities. This process allows you to seamlessly and securely verify your business customer's identity. Weavr will ask users to submit the necessary information and documentation so that they can get approved by financial providers.
Once the consumer has submitted all documentation, you receive a kybSubmitted message
onErrorfunctionOptionalHandle errors
<!--kyb.html-->
<div id="kyb-example"></div>
// secure-kyb.js

const referenceId = "{{ Reference ID }}";

const kyb = weavrComponents.capture.corporateKyb(referenceId);

kyb.mount("#kyb-example", {
// String specifying the language the KYB flow is be displayed in (ISO 639-1 format) (optional, defaults to english)
lang: "en",

// String specifying the applicant email (optional)
email: "",

// String specifying the applicant email (optional)
mobile: "",

// Specify a string of plain text styles to brand the UI elements shown in the KYB flow (optional)
customCssStr: "{{customCssStr}}",

// Specify a CSS file containing styles to brand the UI elements shown in the KYB flow (optional)
customCss: "{{customCss}}",

// Receive updates on the status of the KYB
// Once the consumer has submitted all documentation, you receive a `kybSubmitted` message
// (optional)
onMessage: function (message, additionalInfo) {
console.log("Weavr KYB UI Component message: ", message, additionalInfo);
},

// Handle errors
// (optional)
onError: function (message) {
console.log("Weavr KYB UI Component error: ", message);
},
});



API functions

You can interact with the library's components by utilizing the exposed functions. The below is a list of functions exposed for the KYBKYB Know Your Business - the identity verification process for corporate identities. This process allows you to seamlessly and securely verify your business customer's identity. Weavr will ask users to submit the necessary information and documentation so that they can get approved by financial providers. component.

mount

The mount function is called in order to mount a component into the defined selector.

kyb.mount(selector);



Events

The KYBKYB Know Your Business - the identity verification process for corporate identities. This process allows you to seamlessly and securely verify your business customer's identity. Weavr will ask users to submit the necessary information and documentation so that they can get approved by financial providers. component triggers the following events. You can listen to these events by attaching event listeners.

EventTrigger condition
readyOn component successfully initialization.
changeWhen component's state changes.
errorAn error in the API will fire this. One of the error messages thrown is MICRO_ENTERPRISE_NOT_SUPPORTED, indicating that Micro Enterprises are not supported.