Examples
Probate Bonds 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_********************************",
component_type: "bonds.probate",
payments: {
enabled: true,
button: true
},
product_config: {
"surety-bond-probate": [{
"customer": {
"email_address": "test01@verticalinsure.com",
"first_name": "John",
"last_name": "Doe",
"state": "MN",
"street": "123 street",
"postal_code": "55432",
"phone_number": "(111) 512-4633",
"city": "Minneapolis"
},
"policy_attributes": {
"bond_type": "ESTATE",
"bond_amount": "100000",
"case_number": "HS1231252524",
"appointment_date": dayjs().add(2, "days").format("YYYY-MM-DD"), // YYYY-MM-DD
"deceased_name": "John Doe Sr.",
"jurisdiction": {
"state": "MN",
"county": "Anoka County",
"court_name": "District",
"judicial_district": "10th Judicial District",
},
"attorney": {
"name": "John Doe",
"email_address": "john@lawfirm.com",
}
}
}],
}
}, function(offerState) {
console.log(offerState)
});
</script>
</body>
</html>