# Compliance component

The compliance component displays localized hypertext that links customers to the terms and disclosures of the designated [selling entity](/digital-river-api/integration-options/checkouts/creating-checkouts/selling-entities.md).

![](/files/LsBkkqBJ7pqeF9XgP2WN)

To access Digital River's [merchant of record](https://www.digitalriver.com/merchant-of-record/) model, you'll need to design your experience so that this component is visible (mostly likely in the footer of the page) throughout every stage of the checkout process.

{% hint style="success" %}
The only exception is the [payment component](/digital-river-api/developer-resources/digitalrivercheckout.js-reference/digitalrivercheckout-object/components/payment-component.md). Digital River automatically embeds its disclosures within that component.
{% endhint %}

## Creating the compliance component

To create an instance of the compliance component, pass `'compliance'` to [`createComponent()`](/digital-river-api/developer-resources/digitalrivercheckout.js-reference/digitalrivercheckout-object/components.md#createcomponent-componenttype).

```javascript
let complianceComponent;
...
complianceComponent = components.createComponent('compliance');
...
```

## Mounting the compliance component

To attach the compliance component to your DOM, pass the `id` of its container to [`mount()`](/digital-river-api/developer-resources/digitalrivercheckout.js-reference/digitalrivercheckout-object/components.md#mount-elementid).

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digitalriver.com/digital-river-api/developer-resources/digitalrivercheckout.js-reference/digitalrivercheckout-object/components/compliance-component.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
