> For the complete documentation index, see [llms.txt](https://docs.digitalriver.com/digital-river-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digitalriver.com/digital-river-api/developer-resources/digitalrivercheckout.js-reference/digitalrivercheckout-object/components/compliance-component.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
