Examples
Shipping Example
Basic Example
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/@vertical-insure/embedded-offer"></script>
</head>
<body>
<div id="offer"></div>
<script>
new VerticalInsure("#offer", {
client_id: "test_********************************",
product_config: {
"shipping": [{
"customer": {
"email_address": "test01@verticalinsure.com",
"first_name": "John",
"last_name": "Doe",
"state": "MN",
"postal_code": "55414"
},
"policy_attributes": {
"shipment_date": "YYYY-MM-DD",
"declared_value": 50000,
"courier_id": 1
}
}],
}
}, function(offerState) {
console.log(offerState)
});
</script>
</body>
</html>