@preventor/button
v0.1.8
Published
Preventor Web SDK
Readme
Verification Flow
.png?alt=media&token=737a5f8d-a2b8-4a9e-93dc-8b6a9aed2649)
Get Started
1. Add pvt-button tag in your HTML
<pvt-button></pvt-button>2. Installation via CDN or NPM
CDN
<script src="https://unpkg.com/@preventor/button"></script>NPM
npm install @preventor/button3. Initialize configuration
<script>
const pvtButton = document.querySelector("pvt-button");
pvtButton.addEventListener("loaded", () => {
const config = {
flowType: "YOUR_FLOW_TYPE",
credentials: {
apiKey: "YOUR_API_KEY",
clientSecret: "YOUR_CLIENT_SECRET",
tenant: "YOUR_TENANT",
banknu: "YOUR_BANKNU",
env: "YOUR_ENV",
},
cifCode: "YOUR_CIFCODE"
};
pvtButton.initialize(config);
});
</script>Documentation
You can find the full documentation on the website.
