This documentation provides a reference to the refundPaymentWorkflow. It belongs to the @medusajs/medusa/core-flows package.
refundPaymentWorkflow
@medusajs/medusa/core-flows
This workflow refunds a payment.
useRemoteQueryStep
validateRefundStep
refundPaymentStep
addOrderTransactionStep
emitEventStep
Workflow Hook
Step conditioned by when
when
payment_id
created_by
amount