Displaying the Offer
Present an Offer to your customer after they choose a core product.
Core products include a laptop, a travel booking, and an event ticket.
The Offer panel combines live data from the Create Offer response with static elements that Cover Genius supplies. CG Elements renders both for you.
Key Components of an Offer
Dynamic components
These come from the Create Offer response.
Price. The price and finance details of each quote.
Disclaimer. The legal disclaimer text.
Policy Wording Link. The link to the Policy Disclosure Statement (PDS).
Product Details. The name, benefits, inclusions, and exclusions of each product.
Static components
These come from the presentation field of the response. The Cover Genius CSE team supplies or approves them.
Trustpilot rating
Graphical and brand elements
Layout and design structure
Marketing copy
Design Structure
Cover Genius offers standard layouts and layouts that fit your vertical, for example Travel, Parcel, Ticket, and Retail. The presentation.layout field of the response selects the layout. See Layouts and Sections.
The panel has five sections: header, top body, input body, bottom body, and footer.
Rendering the Offer
Pass the complete Create Offer response to the SDK.
API Response Mapping
The SDK maps each field of the response to a part of the panel. Use this section to check that your response holds the data that the panel needs.
1. Price
Source
products[].details.finance.price.total_amount and the top-level currency
Shown in
The price of each option in the input body
The SDK formats the number with the response currency. It does not use the *_formatted strings. To change the format, set currencyConfig. See Currency and Language.
When the SDK combines several quotes into one option, it adds their amounts. A null amount counts as zero.
2. Disclaimer
Source
content.disclaimer_html or content.disclaimer
Shown in
The footer
The layout sets which field the footer uses. The HTML variant uses disclaimer_html. The text variant uses disclaimer.
The SDK builds the HTML variant from an allowed set of elements: paragraphs and links. It removes all other elements. It removes links with an unsafe protocol. You do not sanitize the HTML.
3. Policy Wording Link
Source
products[].details.pds_url and, when present, content.extras.ipid_url
Shown in
The options, the sub-heading, or the footer, as set by the layout
The link text comes from the response. When a part shows more than one link, a pipe (|) separates them.
4. Offer Heading and Product Content
Source
content.heading, content.sub_heading, content.products[].title, content.products[].description
Shown in
The header heading, the top body sub-heading, and the title and description of each option
5. Benefits, Inclusions, and Exclusions
Source
content.products[].benefits, inclusions, and exclusions
Shown in
The top body and in each option, as set by the layout
Each field is an object of keys and text values. The SDK renders each list. You do not loop over the keys.
6. Call-to-Action Buttons
Source
content.positive_cta, content.negative_cta, content.negative_cta_warning
Shown in
The accept button, the decline option, and the decline warning
The panel keeps the customer's choice. It sends a change event on each choice.
7. Trust and Credibility
Source
content.credibility_message and the review and testimonial fields in content.extras
Shown in
The bottom body
What you still own
Send the complete response to the browser.
Keep
selectedProductIDsfrom thechangeevent.Call Confirm Offer with those quote IDs after the customer completes your checkout.
Show your checkout without the offer if the
errorevent fires.
See Handling Selection.
Required response fields
presentation
Names the layout and theme. Without it, the SDK shows no panel.
products
The quotes and their prices.
content
The text of the panel. Do not set include_content=false on the request.
product_rules
Sets how many options the customer can choose.
currency
Formats the prices.
Last updated
Was this helpful?

