Refunds
Process full and partial refunds.
Updated
On this page
Overview
Refunds are processed through the dashboard. DashForDevs supports both full and partial refunds.
Refund from the Dashboard
- Go to Orders and select the order
Process full and partial refunds.
Updated
Refunds are processed through the dashboard. DashForDevs supports both full and partial refunds.
The refund is processed through the original payment processor and the customer is notified via email.
import dash from "@/lib/dash"
const { order } = await dash.auth.getOrder("ord_abc123")
if (order.status === "refunded") {
console.log("This order has been refunded")
}
Listen for refund events via webhooks:
order.refunded — Fired when a refund is issuedpayment.refunded — Fired when the payment processor confirms the refund