> For the complete documentation index, see [llms.txt](https://docs.digitalriver.com/salesforce-lightning/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/salesforce-lightning/salesforce-lightning-b2b-commerce-app-2.1/integrate-the-salesforce-lightning-app/step-15-integrating-refunds.md).

# Step 15: Integrating refunds

Learn how to integrate refunds.

You can manage refunds at the order and line-item level from the Digital River [Dashboard](https://dashboard.digitalriver.com). The Salesforce Lightning app provides a Refunds button on the order. When you click the **Refunds** button, you will be redirected to the Order details page in the Dashboard.

{% hint style="info" %}
The Refunds button is only available to users assigned to the [DigitalRiver Connector - Refunds permission set](/salesforce-lightning/salesforce-lightning-b2b-commerce-app-2.1/integrate-the-salesforce-lightning-app/step-13-manage-permission-sets.md).
{% endhint %}

To add the Refunds button to your Order layout:

1. Click the App Launcher ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/82qcAiYnCB2Ypud5wMqO/App%20launcher.png).
2. Type `Orders` in the **Search** field and click **Orders**.\
   ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/ocoLA4vNavOr2YXhsXLW/Orders.png)
3. Click a link under the **Order Number** column.\
   ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/6gtEYNFu25JOsYfZCAOy/Orders%20Recently%20Viewed.png)
4. Click **Setup** ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/lEcQsi8hQMvR90fr2QHZ/Setup.png) and select **Edit Page**.\
   ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/LMFft7CDZwJ4cT8sSU1u/Setup%20Edit%20Page.png)
5. Click the top panel.\
   ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/WgWWKuKHGGc9Upur0hny/Top%20panel%20-%20No%20Refund%20button.png)
6. Click **Upgrade Now** button on the panel to the right of the Lightning App Builder.![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/SvUbwOAAoJP91flkXeF9/Upgrade%20Now.png)
7. Click **Migrate** from the **Dynamic Actions** dialog and then click **Next**.\
   ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/S9thTm2fbEO9N9jm2vLc/Migrate.png)
8. Select **Order Layout** and click **Finish**.
9. Click **Add Action** in the panel to the right.\
   \
   ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/CNwMg2HgUDvtimG0EcSb/Add%20Action.png)
10. Type `Refunds` in the **Search actions** field and click **Refunds**.\
    \
    ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/YLp0XcQ4c0UbAw7YL94c/Acions%20-%20Refunds.png)
11. Click **+ Add Filter** to set the action visibility.\
    \
    ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/K94nYaUdUmxzjFCOedSC/Add%20Filter.png)
12. Clicked the **Advanced** tab and then click the **Select** button.\
    ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/dAX4J7ZNUBqmgczhI44n/Add%20Filter%20-%20Select.png)
13. Select **Permissions** from the filter list in the **Select field** dialog.![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/aKa3zVwRZZvKStaSqIje/Select%20field.png)
14. Select **Custom Permission** from the next filter list.\
    ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/ZI34RcROj2n5pXj7whOc/Select%20field%20-%20Custom%20Permission.png)
15. Select **digitalriverv3.Enable\_Refunds\_Button** from the next filter list.\
    \
    ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/fJAwWw2pfobSw1qqzL86/Select%20field%20-%20Enable%20Refunds%20Button.png)
16. Click **Done**.
17. Set the **Value** field to **True** and click **Done**.\
    ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/cuVxN3UwjIys9gVe17E7/Set%20value%20to%20True.png)
18. Click **Done**.\
    ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/Jg7R1O0Coh6jm3VMKtDy/Click%20Done.png)\
    The Refunds button appears in the top panel.\
    ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/5wndOpMu9hvRw4acSzyn/Top%20panel.png)
19. Click **Save** and then click **Activate**.
