Configuration
Adding the SDK to your site
Make sure that you added our script to your site. You can exclusively add to your checkout (or any other page where you want to show the available insurances), but we highly recommend to add it to all your pages:
<script src="https://sandbox.sdk.vernsurance.com/latest/sdk.js"></script>
<script>
var vern = Vern.configure('<replace with your public key>', {
language: 'hu',
debug: true
});
</script>
When the SDK is finished with the configuration a ready event is going to be fired. After this you can start the
recommendation.
vern.on('ready', () => {
console.log('SDK is ready for recommendation');
});
