# DR compliance component

{% hint style="info" %}
**Note:** The information in this section applies to both the `drb2b_drCompliance` component (Aura only) and `drb2b_drCompliance_LWR` component (LWR only).
{% endhint %}

Use the `drb2b_drCompliance` component to display the Digital River compliance footers on the storefront. You can configure this component in the experience builder.

You can publish an event to reload the compliance component. Depending on your flow, it may be required to reload the compliance footer in the case that the shopper updates their shipping or billing address.

### Publish the DR compliance component events

Complete the following tasks to publish various event types. The event purpose and payload will vary depending on the use case.

Import `DigitalRiverMessageChannel__c message` channel and message service into a custom JavaScript file as shown below.

{% code title="Import example" %}

```
import dr_lms from "@salesforce/messageChannel/digitalriverv3__DigitalRiverMessageChannel__c";

import {publish, MessageContext } from "lightning/messageService";

```

{% endcode %}

Declare the message context variable as shown below.

{% code title="Declare variable example" %}

```
@wire(MessageContext) messageContext;
```

{% endcode %}

Publish the event.

{% code title="Event publishing example" %}

```
publish(this.messageContext, dr_lms, { 
                    purpose: '<purpose>',           
                    payload: '<payload>'            
                });

```

{% endcode %}

Refer to the following table for more information on the DR compliance component events.

| Event purpose    | Event payload example | Description                                               |
| ---------------- | --------------------- | --------------------------------------------------------- |
| reloadCompliance | n/a                   | Publish this event to reload the DR compliance component. |
