# Order summary component

The order summary component lists the products in the customer's cart at checkout-time and provides an item-level and order-level breakdown of how much they are to be charged, denominated in the [checkout-session's](https://app.gitbook.com/s/x8fSFzVR3sg0TsNWwwVz/drop-in-checkout-sessions/checkout-sessions-basics) [`currency`](https://app.gitbook.com/s/x8fSFzVR3sg0TsNWwwVz/drop-in-checkout-sessions/checkout-sessions-basics#currency).

For each of that resource's [`items[]`](https://app.gitbook.com/s/x8fSFzVR3sg0TsNWwwVz/drop-in-checkout-sessions/checkout-sessions-basics#product-data), the component displays its `quantity` along with the `image` and `name` that you either passed in [`productDetails`](https://docs.digitalriver.com/digital-river-api/product-management/skus#product-details) or stored in the referenced [SKU](https://docs.digitalriver.com/digital-river-api/product-management/skus#skus).

As customers progress through the various checkout stages, Digital River computes applicable taxes and shipping costs and then updates the experience.

<figure><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2Fef8H1CPHUAIRFWnjAy9U%2Fimage.png?alt=media&#x26;token=d3d7fb40-1665-43ba-80b7-a6c249a13893" alt=""><figcaption></figcaption></figure>

## Creating the order summary component

To create an instance of the order summary component, pass `'ordersummary'` to [`createComponent()`](https://docs.digitalriver.com/digital-river-api/developer-resources/digitalrivercheckout.js-reference/digitalrivercheckout-object/components/..#createcomponent-componenttype).

```javascript
let orderSummaryComponent;
...
orderSummaryComponent = components.createComponent('ordersummary');
```

## Mounting the order summary component

To attach the order summary component to your DOM, pass the `id` of its container to [`mount()`](https://docs.digitalriver.com/digital-river-api/developer-resources/digitalrivercheckout.js-reference/digitalrivercheckout-object/components/..#mount-elementid).

```javascript
<div id="order-summary-container" style="display: block">
...
orderSummaryComponent.mount('order-summary-container');
```
