It is not illegal to refund to a different card as long as the refund is within the same merchant account. If the refund is processed through a different account, it may be considered fraudulent activity.