Leyva was once again invited to play for the senior team at the 2012 Pan American Cups, first at the Senior Pan-American Cup and then at the U23 Cup. Leyva then participated in the 2012 South American Junior Championship where the Peruvian team finished second; Leyva was named Best Server.