vue-caisson
Installation
npm install vue-caisson
Usage
<template>
<div id="app">
<CaissonIDCheck
apiKey="your caisson public API key"
appearance="dark"
@idCheckCreated="created"
@idCheckComplete="complete"
></CaissonIDCheck>
</div>
</template>
<script>
import CaissonIDCheck from "vue-caisson";
export default {
name: "App",
components: {
CaissonIDCheck
},
methods: {
created(idCheck) {
console.log("created", idCheck);
},
complete() {
console.log("complete");
}
}
};
</script>
Props
props: {
apiKey: String, // your Caisson public API key
appearance: String, // "light" or "dark"
customerID: String, // how your systems identify the customer.
}
Events
The component emits the following events
idCheckCreated
idCheckComplete