The process to void a sale and refund an order is the same. Whether a sale is voided or refunded depends on the status of the payment within the payment gateway.
If the payment is still unsettled (typically 24 hours), the sale will automatically be voided.
If the payment is already settled, the sale will be refunded