v2.3 Option to automatically attempt a void if refund fails
Authorize.Net rejects a refund if a transaction has not yet been settled. This release introduces an optional flag that can be passed to a refund request that will attempt a void if this condition is met.
Pass voidIfRefundFails = true
to enable this functionality.