chore: reorganize docs apps (#7228)

* reorganize docs apps

* add README

* fix directory

* add condition for old docs
This commit is contained in:
Shahed Nasser
2024-05-03 17:36:38 +03:00
committed by GitHub
parent 224ebb2154
commit 4fe28f5a95
6187 changed files with 601447 additions and 598226 deletions
@@ -0,0 +1,71 @@
---
sidebar_position: 2
sidebar_label: Manage Payments
---
import {
EllipsisHorizontal,
} from "@medusajs/icons"
export const metadata = {
title: `Manage Order's Payments`,
}
# {metadata.title}
In this document, youll learn how to manage an orders payment, including capturing and refunding the payment.
## Overview
When a customer places an order, using the payment provider they choose during checkout, they authorize the payment.
The payment isnt automatically captured. You must capture it manually from the Medusa Admin.
---
## Capture Payment
<Note>
Payment is only captured once.
</Note>
To capture an orders payment:
1. Open the order details page.
2. Scroll to the Payments section.
3. Click on the Capture button.
---
## Refund Payment
<Note type="warning">
Refunding payments is irreversible.
</Note>
<Note type="check">
Payment can only be refunded if it's captured.
</Note>
{/* TODO check info after #5 */}
To refund an orders payment:
1. Open the order details page.
2. Scroll to the Payment section.
3. Click on the <InlineIcon Icon={EllipsisHorizontal} alt="three-dots" /> icon.
4. Choose "Refund" from the dropdown.
5. In the drawer that opens:
- Enter the amount to refund in the "Refund amount" field.
- In the Reason field, choose a reason for the refund.
- Optionally enter a note that the customer can view in the Note field.
- If you dont want the customer to receive a notification that the payment has been refunded, uncheck the “Send notifications” checkbox.
6. Once youre done, click on the Complete button.
Check refund details in the Payment, Summary, and Timeline sections.