If you run a business like a store, you may have public restrooms available to use if needed. But, do you require that they purchase something in order to use the bathroom? I know some businesses that require you to at least buy something in order to use their rest rooms. I think it's fine to do if you want.