> 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/integration-options/low-code-checkouts/displaying-policies-and-getting-consent.md).

# Displaying policies and getting consent

You can configure a [low-code checkout](/digital-river-api/integration-options/low-code-checkouts.md) so that customers can view and consent to your specific policies and agree to receive marketing and promotional emails.

On this page, you'll find information on how to:&#x20;

* [Display your legal policies to customers and get their consent](#provide-access-to-legal-policies)&#x20;
* [Acquire customers' consent to send marketing emails](#get-consent-to-send-marketing-emails)
* [Provide customers access to your return and refund policies](#provide-access-to-return-and-refund-policies)
* [Determine what customers consented to while checking out](#determine-what-customers-accepted)

## Provide access to legal policies

When selecting a payment method, customers must check a box indicating they consent to Digital River's terms of sale. To append a link to this checkbox that takes customers to your end user license agreement and/or terms of service, select the appropriate option in [Digital River Dashboard](https://dashboard.digitalriver.com/login) and then enter a URL.

{% tabs %}
{% tab title="Dashboard" %}

<div align="left"><figure><img src="/files/k3zdCs0qzvrPQZ72KEp4" alt=""><figcaption></figcaption></figure></div>
{% endtab %}

{% tab title="Prebuilt Checkout" %}

<div align="left"><figure><img src="/files/vx13uzObrtKcZRQ6vICZ" alt=""><figcaption></figcaption></figure></div>
{% endtab %}

{% tab title="Payment Component" %}

<div align="left"><figure><img src="/files/x4WrJeZdwBQse9B1RUGa" alt=""><figcaption></figcaption></figure></div>
{% endtab %}
{% endtabs %}

## Get consent to send marketing emails

Toggle the **Display marketing opt-in checkout** feature in the [Digital River Dashboard](https://dashboard.digitalriver.com/login) to display a checkbox asking customers whether they consent to receive marketing and promotional emails.&#x20;

Once activated, customers are asked when they supply their address information and whether they want to receive news and offers.

{% tabs %}
{% tab title="Dashboard" %}

<div align="left"><figure><img src="/files/tOMTZKfrhy1THGG5y2j1" alt=""><figcaption></figcaption></figure></div>
{% endtab %}

{% tab title="Prebuilt Checkout" %}

<div align="left"><figure><img src="/files/1R3SFmnto3RyKk86RzR7" alt=""><figcaption></figcaption></figure></div>
{% endtab %}

{% tab title="Address Component" %}

<div align="left"><figure><img src="/files/g78L4YnJAP3Ghl0InQd4" alt=""><figcaption></figcaption></figure></div>
{% endtab %}
{% endtabs %}

## Provide access to return and refund policies

Select the appropriate checkboxes in the [Digital River Dashboard](https://dashboard.digitalriver.com/login) and enter a URL to display a link to your return and refund policies in the compliance footer.&#x20;

{% tabs %}
{% tab title="Dashboard" %}

<div align="left" data-full-width="true"><figure><img src="/files/w7rmLAUIOGDUY3PmIOu8" alt=""><figcaption></figcaption></figure></div>
{% endtab %}

{% tab title="Prebuilt Checkout" %}

<div align="left"><figure><img src="/files/9A6JbYNtXzSiXlH4yu5W" alt=""><figcaption></figcaption></figure></div>
{% endtab %}

{% tab title="Compliance Component" %}

<div align="left"><figure><img src="/files/bhQcmtzhABNXuvK2ZXHr" alt=""><figcaption></figcaption></figure></div>
{% endtab %}
{% endtabs %}

## Determine what customers accepted

To determine what customers consented to while checking out, you'll most likely [configure a webhook](/digital-river-api/administration/dashboard/developers/webhooks/creating-a-webhook.md) to listen for the [event](https://www.digitalriver.com/docs/digital-river-api-reference/#tag/Events) with a [`type`](/digital-river-api/order-management/events-and-webhooks-1/events-1.md#event-types) of `checkout_session.order.created`.  Its  [`data.object`](/digital-river-api/order-management/events-and-webhooks-1/events-1.md#event-data) contains `consents`. However, you can also access `consents` by assigning a handler to [`onCheckoutComplete`](/digital-river-api/developer-resources/digitalrivercheckout.js-reference/digitalrivercheckout-object/configuring-prebuilt-checkout.md#oncheckoutcomplete), [`onChange`](/digital-river-api/developer-resources/digitalrivercheckout.js-reference/digitalrivercheckout-object/components/configuring-components.md#change-event), or [`onSuccess`](/digital-river-api/developer-resources/digitalrivercheckout.js-reference/digitalrivercheckout-object/components/configuring-components.md#onsuccess). &#x20;

{% code fullWidth="false" %}

```javascript
{
    "id": "1ebfd13c-4ef6-443c-b58a-cb119f1c24fd",
    "type": "checkout_session.order.created",
    "data": {
        "object": {
            "id": "1038474530082",
            ...
            "consents": {
                "termsOfService": true,
                "eula": true,
                "termsOfSale": true
            },
            ...
        }
    },
    ...
}
```

{% endcode %}

To determine whether customers agreed to be sent marketing news and offers, check the value of `emailPromotionsOptIn`.

The `eula` and `termsOfService` attributes reference your company's end-user license agreement and terms of service, respectively. If they exist, their value should always be `true`. This is because they're appended to Digital River's `termsOfSale`, which customers must accept before being allowed to place an order.&#x20;
