> 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-1.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-1.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://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-f86123e0362139501f02052975cd7ba82000c8b6%2FApp%20launcher.png?alt=media).
2. Type `Orders` in the **Search** field and click **Orders**.\
   ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-b2d46f0621749155ecdabba6b76439790b680fd9%2FOrders.png?alt=media)
3. Click a link under the **Order Number** column.\
   ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-06749132932a48acd1f1506aa45573315886c9be%2FOrders%20Recently%20Viewed.png?alt=media)
4. Click **Setup** ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-236ac3ea9e3a38705205d7d99c4ed3c7977cffab%2FSetup.png?alt=media) and select **Edit Page**.\
   ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-248f0c4e953bd898fb00de11607f1542a13caea6%2FSetup%20Edit%20Page.png?alt=media)
5. Click the top panel.\
   ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-4bcd90307aac361a12e0f77fed1beca96fa493a5%2FTop%20panel%20-%20No%20Refund%20button.png?alt=media)
6. Click **Upgrade Now** button on the panel to the right of the Lightning App Builder.![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-fee866b67474657ebd87a710cdc16a101b7f650f%2FUpgrade%20Now.png?alt=media)
7. Click **Migrate** from the **Dynamic Actions** dialog and then click **Next**.\
   ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-8fc3fe316517092cb8a9f0b584b179454440085d%2FMigrate.png?alt=media)
8. Select **Order Layout** and click **Finish**.
9. Click **Add Action** in the panel to the right.\
   ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-c06bf39b38687517e2449fb873c4f08234efce3b%2FAdd%20Action.png?alt=media)
10. Type `Refunds` in the **Search actions** field and click **Refunds**.![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-8babe5097c5710d0f21bd9456d5bd1ec87e39650%2FAcions%20-%20Refunds.png?alt=media)
11. Click **+ Add Filter** to set the action visibility.\
    ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-f748a9bcc68781c20d17d7c7b12b363d3f75df3e%2FAdd%20Filter.png?alt=media)
12. Clicked the **Advanced** tab and then click the **Select** button.\
    ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-8a56d8e4c9b789bce01a6fe56ef4e624b010c087%2FAdd%20Filter%20-%20Select.png?alt=media)
13. Select **Permissions** from the filter list in the **Select field** dialog.![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-556c5301a9ede93401ff99f5ba7e1ea43b25292e%2FSelect%20field.png?alt=media)
14. Select **Custom Permission** from the next filter list.\
    ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-43746f5a78675db37a9be22ca88d8e427a9c5528%2FSelect%20field%20-%20Custom%20Permission.png?alt=media)
15. Select **digitalriverv3.Enable\_Refunds\_Button** from the next filter list.![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-ce8564496be3928a78149789cc9e31d0128aacf6%2FSelect%20field%20-%20Enable%20Refunds%20Button.png?alt=media)
16. Click **Done**.
17. Set the **Value** field to **True** and click **Done**.\
    ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-54c299654b88d035b9e7e391895c9deb4af90315%2FSet%20value%20to%20True.png?alt=media)
18. Click **Done**.\
    ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-c9e83c353f3591b3a134ae67bb8cbbe1811b1021%2FClick%20Done.png?alt=media)\
    The Refunds button appears in the top panel.\
    ![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-f2a9a537fa685bb349ab4ab26403183a17eefb7f%2FTop%20panel.png?alt=media)
19. Click **Save** and then click **Activate**.
