Testing both Banner and Card layouts with all sub-components
Environment:
BFF URL:
Full vertical layout with all features. Best for dedicated pricing pages or when you want to give the widget prominent placement. Includes logo, location inputs, pricing display, and value proposition.
Updates both the default card above and the resizable card below.
<cd-price-check-widget-card
bff-url="https://your-bff-url.com"
token="your-auth-token"
pickup-postal-code="85044"
vin="1HGBH41JXMN109186"
year="2021"
make="Honda"
model="Accord"
is-operable="true"
></cd-price-check-widget-card> The card fills its container's width and rearranges itself for the space it has, down to 126px wide: below 150px the logo shrinks to its icon, below 280px the side padding drops to 8px, and from 600px the ZIP input, price and copy sit side by side. Text stays the same size and wraps instead of scaling. Drag the bottom-right corner of the dashed box below to try it.
<cd-price-check-widget-card
bff-url="https://your-bff-url.com"
token="your-auth-token"
pickup-postal-code="85044"
vin="1HGBH41JXMN109186"
year="2021"
make="Honda"
model="Accord"
is-operable="true"
></cd-price-check-widget-card> The dashed box above has a fixed height. Most integrators embed the card in a page that doesn't โ
e.g. a popup window, where <body> is only as tall as its content. This opens the
card alone in a plain auto-height popup (using the Card Widget Test Form values) so you can
resize the window and check that the card fills its width.
Simulates a host page moving the same widget element to another container, as dialog and popup
libraries often do. Uses the token and values from the Card form above (pickup ZIP 30318 against the local
mocks). Keep DevTools Network open, filtered to price-check.
In every case the card should never show "Due to a system error". The log below lists each move and event.
Compact horizontal layout optimized for space-constrained areas like headers, sidebars, or embedded sections. Shows essential information in a streamlined format.
<cd-price-check-widget-banner
bff-url="https://your-bff-url.com"
token="your-auth-token"
pickup-postal-code="10001"
dropoff-postal-code="90210"
vin="JH4KA7561MC010714"
year="2020"
make="Acura"
model="NSX"
is-operable="true"
></cd-price-check-widget-banner> <cd-price-check-widget-banner
bff-url="https://your-bff-url.com"
token="your-auth-token"
pickup-postal-code="10001"
dropoff-postal-code="90210"
vin="JH4KA7561MC010714"
year="2020"
make="Acura"
model="NSX"
is-operable="true"
vertical-view="true"
></cd-price-check-widget-banner> All widget events are logged here in real-time. Watch for lifecycle events, user interactions, and API calls.
Provide a VIN, or Year + Make + Model. At least one of the two is required.
{ minPrice, maxPrice, currency }{ message, code }, where code is one of INVALID_ZIP (banner only), NO_PRICE_DATA, SERVICE_UNAVAILABLE, or the HTTP status code{ pickupPostalCode, dropoffPostalCode }{ message: 'Invalid ZIP' }