Introduction
The Vern Ticket Cancellation SDK makes the upsales of cancellation insurance in any ticketing portal super simple. We are offering an easy-to-use SDK, that is able to handle all the complicated insurance processes, so you can launch this feature as soon as possible.
User Journey
As a first step, you have to include the Vern SDK into your website, preferably on one of the checkout pages. When the customer is ready with selecting tickets, the SDK will display a recommended insurance offer, and if the customer would like to activate it, the SDK will also ask for extra information required for the policy. The insurance then will be added to cart and can be paid together with the tickets.
Upon successful payment, you have to notify us via the Vern API. This will allow us to finalise the policy, communicate with insurance companies and store every required information for compliance reasons. Afterwards, the created policy will be sent to the customer and all insured participants.

Usage
To use the SDK you will have to obtain one pair of access keys. A public key will give you access to the embedding and recommendation
features of the SDK. Another secret key will be used to notify us after the successful payment. Please be aware, that the secret key shall not be shared on client side!
These access keys will be generated and shared with you by Vern.
Endpoints
The SDK in sandbox environment is available at: https://sandbox.sdk.vernsurance.com/latest/sdk.js
The purchase webhook in sandbox environment is available at: https://api.ticket.staging.vernsurance.com/finalize
