When a refund is processed it is sent to the card that the funds were received from. If the card is expired, as long as your customer's bank account is the same, the gateway should be able to issue a refund back to their account even if a new credit card is issued.