Examples
Tuition Example
Basic Example
import { VerticalInsure } from '@vertical-insure/embedded-offer-react'
import dayjs from 'dayjs'
export default function App() {
return (
<VerticalInsure
config={{
client_id: "test_********************************",
product_config: {
tuition: [{
customer: {
email_address: "test01@verticalinsure.com",
first_name: "James",
last_name: "Doe",
state: "MN",
postal_code: "55401",
},
policy_attributes: {
student: {
first_name: "John",
last_name: "Doe",
birth_date: "2000-01-01",
},
school: {
id: "example-school-001",
name: "Example School",
street: "123 main st",
city: "Anytown",
state: "MN",
postal_code: "55401",
school_contact_first_name: "Jane",
school_contact_last_name: "Seymour",
school_contact_email: "test01@verticalinsure.com",
},
tuition_amount: 1000000,
term_start_date: dayjs().add(14, "days").format("YYYY-MM-DD"),
term_end_date: dayjs().add(4, "months").format("YYYY-MM-DD"),
},
}],
},
}}
/>
)
}