- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Manage Order Payments in Medusa Admin
In this guide, you’ll learn how to manage an order’s payment, including capturing and refunding the payment.
Overview#
When a customer places an order, their payment is authorized by the payment provider they've chosen. You can manage an order's payment by capturing it, refunding it, or handling outstanding amounts.
Order Payment Statuses#
At the top of the order details page, you can see the payment status of the order. The payment status can be one of the following:
Status | Description |
---|---|
Authorized | The default status when an order is placed, unless the payment provider is configured to automatically capture the payment. |
Partially Authorized | Part of the payment is authorized, which happens if an order has changed. For example, if an order was edited and new payment is required. |
Captured | The payment has been captured and processed with the payment provider. |
Partially Captured | A part of the payment has been captured. This happens when an order's payment was previously captured, but a change to the status, such as an exchange, requires additional payment. |
Refunded | The payment has been refunded to the customer. |
Partially Refunded | A part of the payment has been refunded. |
Capture Payment#
Unless the payment provider that the customer chose is configured to automatically capture an order's payment, you need to manually capture the payment.
Capturing an order's payment triggers its processing with the chosen payment provider, such as Stripe.
To capture an order’s payment:
- Open the order's details page.
- Scroll to the Payments section.
- Click on the Capture Payment button.
- Confirm capturing the payment by clicking the "Confirm" button in the pop-up.
Handling Outstanding Amounts#
After making changes to an order, such as editing its items or creating an exchange, there may be outstanding amounts (to be captured from the customer or returned) that are in the Summary section.
If the outstanding amount is negative, it means you owe the customer a refund.
Otherwise, a positive outstanding amount means there are additional payments required from the customer. You can handle it by either:
Refund Payment#
If you've made changes to an order, such as return or exchange items, you can refund a previously-captured payment if there's an outstanding amount.
Refunding the payment triggers its processing with the chosen payment provider, such as Stripe.
To refund an order’s outstanding amount:
- Open the order's details page.
- Scroll to the Payment section.
- Click on the icon at the right of the payment to refund.
- Choose "Refund" from the dropdown.
- In the side window that opens, fill out the following fields:
- Select payment to refund: Choose the payment to refund an amount from.
- Amount: Enter the amount to refund.
- Note: A note that the customer can see in the notification they receive.
- Once you’re done, click on the Save button.
Once the payment is refunded, the customer will receive a notification about the refund and you can view the refund as part of the order's activity.
Mark Outstanding Amount as Paid#
By marking a positive outstanding amount as paid, you're capturing the payment without processing it through the associated payment provider. Instead, you handle capturing the payment outside of Medusa.
To mark a positive outstanding amount as paid:
- Open the order's details page.
- In the Summary section, click on the "Mark as paid" button.
- Confirm marking the payment as paid by clicking the "Confirm" button in the pop-up.
Copy Payment Link for Additional Payment#
Another way you can handle a positive outstanding amount is by sharing a payment link with the customer to authorize the payment. The payment link is a link in the storefront that the customer can use to pay for the additional amount.
To copy a payment link for the additional payment:
- Open the order's details page.
- In the Summary section, click on the "Copy payment link" button.
The link is then copied and you can share it with the customer to authorize the payment. Once authorized, you can then capture the payment.