Some here use belly bands for their male dogs. Do a search for belly bands up top there
Good luck! This is the main reason why I hesitate to get a male dog, as sweet as they are. I don't know if I could handle the peeing on vertical surfaces, horizontal is enough for me