> 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

Gain a better understanding of how to set-up a low-code checkout to display your policies and get a customer's 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="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FWNDOgtNaYB5Iaq6PQKUz%2Fimage.png?alt=media&amp;token=f258730b-9858-4e49-bfe7-a6ca823e689a" alt=""><figcaption></figcaption></figure></div>
{% endtab %}

{% tab title="Prebuilt Checkout" %}

<div align="left"><figure><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2Fp0XfqQRjMXakkMZTPgLB%2FPBC%20legal%20terms.png?alt=media&amp;token=627036ef-8f07-4c8d-9c0a-ba052bd2581d" alt=""><figcaption></figcaption></figure></div>
{% endtab %}

{% tab title="Payment Component" %}

<div align="left"><figure><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FiFZfdpXUdXuWT4sMwgKC%2FPayment%20component.png?alt=media&amp;token=3272f726-1626-4eb5-8174-f1d85a008132" 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="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FpoPwhyLVPrsJLIi7Uys1%2Fimage.png?alt=media&amp;token=3c9039db-03cd-4588-9dac-4a879b492e84" alt=""><figcaption></figcaption></figure></div>
{% endtab %}

{% tab title="Prebuilt Checkout" %}

<div align="left"><figure><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FkklYkp9xGPD5Bvkfwuly%2FPBC%20marketing%20consent.png?alt=media&amp;token=d671acef-4e50-47a5-8bd7-d1c9dbdb63af" alt=""><figcaption></figcaption></figure></div>
{% endtab %}

{% tab title="Address Component" %}

<div align="left"><figure><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2F2agexovjPVIonzEVpaYQ%2FAddress%20component%20email%20mark%20consent.png?alt=media&amp;token=5d128c26-df6f-4eef-9e68-eb8cd99f7f61" 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="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FO30y7mXkLMA0OqFyQMZw%2Fimage.png?alt=media&amp;token=f7460d4b-2b96-4134-9963-ba755e554118" alt=""><figcaption></figcaption></figure></div>
{% endtab %}

{% tab title="Prebuilt Checkout" %}

<div align="left"><figure><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2F8Kc8X6Lk8WmySfEuT33o%2FPBC%20refund%20and%20return%20policy.png?alt=media&amp;token=7b4784a2-1795-42cd-8177-db01cc16e584" alt=""><figcaption></figcaption></figure></div>
{% endtab %}

{% tab title="Compliance Component" %}

<div align="left"><figure><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FTvQB9lYPm84DJseXJ5Q7%2FCompliance%20component.png?alt=media&amp;token=43810a13-cb74-4f1b-a2ad-2ba286955046" 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;
