When a refund is issued, Stax Bill first attempts to void the transaction. If this option is no longer available, then a credit/refund will be issued against the related payment in the gateway. This typically only happens within the first few days of a payment's life as it is still pending with the customer's credit card issuer.
This is also where the behavior described in this article arises: Why was my partial refund issued as a full refund?