Skip to main content

Embedded Offer

Our embedded offer solution is now generally available. This new solution provides better integration across many different browsers, platforms, and frameworks and improves our multi-variate testing capabilities with regard to offer conversion. We've also simplified the interface between the embedded offer library and our REST API, making it easier to understand the required fields for getting a quote. This solution should be used in place of our web component library going forward.

<html>
<head>
<script src="https://unpkg.com/@vertical-insure/embedded-offer"></script>
</head>
<body>
<div id="offer"></div>

<script>
new VerticalInsure("#offer", {
client_id: "test_********************************",
product_config: {
"gap-medical": [{
"customer": {
"email_address": "user@example.com",
"first_name": "John",
"last_name": "Doe",
"state": "MN",
"postal_code": "55414"
},
"policy_attributes": {
"coverage_end_date": "2025-06-25",
"coverage_start_date": "2025-01-25",
"coverage_type": "SOCCER",
"covered_person": {
"birth_date": "2010-07-05",
"state": "MN",
"first_name": "John",
"last_name": "Doe",
"street": "NA"
}
}
}]
}
}, function(offerState) {
console.log(offerState)
});
</script>
</body>
</html>