From 1859, Payer served as a sub-lieutenant with the Austrian 36th infantry regiment in Verona, Venetia. He participated in the disastrous Battle of Solferino on 24 June 1859 and was honoured for his service. After promotion to the rank of lieutenant first class, he was posted to the garrison of Chioggia, Venetia in 1864. On 24 June 1866 he served the Battle of Custoza, seizing two guns, for which he was decorated and elevated to the rank of senior lieutenant.