Verification Flow
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/button
3. 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.