# Step 15: Integrating 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](https://docs.digitalriver.com/salesforce-lightning/salesforce-lightning-b2b-commerce-app-2.0/integrate-the-salesforce-lightning-app/step-13-manage-permission-sets).
{% endhint %}

To add the Refunds button to your Order layout:

1. Click the App Launcher ![](https://content.gitbook.com/content/cMse5dnAKvo2qT6VvSWW/blobs/wyuHXVjWh7Yt1KMTW1AL/App%20launcher.png).
2. Type `Orders` in the **Search** field and click **Orders**.\
   ![](https://content.gitbook.com/content/cMse5dnAKvo2qT6VvSWW/blobs/Hzp9yhEjpiWXnD9FcdbN/Orders.png)
3. Click a link under the **Order Number** column.\
   ![](https://content.gitbook.com/content/cMse5dnAKvo2qT6VvSWW/blobs/wv7mLOuGrePXNWVVZCqc/Orders%20Recently%20Viewed.png)
4. Click **Setup** ![](https://content.gitbook.com/content/cMse5dnAKvo2qT6VvSWW/blobs/ugAkYdnhfyrtrCqBkpBl/Setup.png) and select **Edit Page**.\
   ![](https://content.gitbook.com/content/cMse5dnAKvo2qT6VvSWW/blobs/7sb9ouyL0rVqexIYM1Ld/Setup%20Edit%20Page.png)
5. Click the top panel.\
   ![](https://content.gitbook.com/content/cMse5dnAKvo2qT6VvSWW/blobs/kbIDbblngk4J1b1dKAGc/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/cMse5dnAKvo2qT6VvSWW/blobs/dal6PRYIue20Objjngfu/Upgrade%20Now.png)
7. Click **Migrate** from the **Dynamic Actions** dialog and then click **Next**.\
   ![](https://content.gitbook.com/content/cMse5dnAKvo2qT6VvSWW/blobs/tFY6cdApNzoa7a6WQuZS/Migrate.png)
8. Select **Order Layout** and click **Finish**.
9. Click **Add Action** in the panel to the right.\
   ![](https://content.gitbook.com/content/cMse5dnAKvo2qT6VvSWW/blobs/qg8cXKQs1suuAUjImi7U/Add%20Action.png)
10. Type `Refunds` in the **Search actions** field and click **Refunds**.![](https://content.gitbook.com/content/cMse5dnAKvo2qT6VvSWW/blobs/3mHFZAVCtQe6zRBGlEEz/Acions%20-%20Refunds.png)
11. Click **+ Add Filter** to set the action visibility.\
    ![](https://content.gitbook.com/content/cMse5dnAKvo2qT6VvSWW/blobs/djPgqZQhJZSENielHNCN/Add%20Filter.png)
12. Clicked the **Advanced** tab and then click the **Select** button.\
    ![](https://content.gitbook.com/content/cMse5dnAKvo2qT6VvSWW/blobs/Mn0WC8Lk1k617cnERUof/Add%20Filter%20-%20Select.png)
13. Select **Permissions** from the filter list in the **Select field** dialog.![](https://content.gitbook.com/content/cMse5dnAKvo2qT6VvSWW/blobs/zv7guf0TxVwnxiM81l2p/Select%20field.png)
14. Select **Custom Permission** from the next filter list.\
    ![](https://content.gitbook.com/content/cMse5dnAKvo2qT6VvSWW/blobs/2HOulr60frbiHidCIZlk/Select%20field%20-%20Custom%20Permission.png)
15. Select **digitalriverv3.Enable\_Refunds\_Button** from the next filter list.![](https://content.gitbook.com/content/cMse5dnAKvo2qT6VvSWW/blobs/9Ff4EJBblAAUEdbhvr84/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/cMse5dnAKvo2qT6VvSWW/blobs/fVJK6SaBNX7weKwUWx8s/Set%20value%20to%20True.png)
18. Click **Done**.\
    ![](https://content.gitbook.com/content/cMse5dnAKvo2qT6VvSWW/blobs/aXBNEehv5lulSb3cFOdI/Click%20Done.png)\
    The Refunds button appears in the top panel.\
    ![](https://content.gitbook.com/content/cMse5dnAKvo2qT6VvSWW/blobs/2scuUn3M9JvSmomQyGWz/Top%20panel.png)
19. Click **Save** and then click **Activate**.
