Docs

Docs

  • Support

›Home SDK

Ticket Cancellation SDK

  • Introduction
  • Configuration
  • Insurance Recommendation
  • Finalise Purchase
  • Example

Ticket Cancellation API

  • Quote
  • Policy

Device SDK

  • Introduction
  • Configuration
  • Insurance Recommendation
  • Finalise Purchase

Device API

  • Quote
  • Policy

Home SDK

  • Introduction
  • Configuration
  • Insurance Recommendation
  • Finalise Purchase

Home API

  • Quote
  • Policy

Travel SDK

  • Introduction
  • Configuration
  • Insurance Recommendation
  • Finalise Purchase

Travel API

  • Configuration Params
  • Quote
  • Quote by Product
  • Policy

Authentication

  • Authentication

Support

  • Support

Notifications

  • Get notified

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/loader.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');
 });

← IntroductionInsurance Recommendation →
  • Adding the SDK to your site
Docs
Docs
SDK
Copyright © 2019 Vernsurance