@preventor/button
TypeScript icon, indicating that this package has built-in type declarations

0.1.8 • Public • Published

Preventor logo

Verification Flow

alt text

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @preventor/button

Weekly Downloads

6

Version

0.1.8

License

MIT

Unpacked Size

20.5 MB

Total Files

598

Last publish

Collaborators

  • preventor