Valdivia was also part of the Chile team at the 2017 Pan American Cup. At the tournament, Chile recorded a historic 4–3 victory over the United States, entering the final for the first time.