In the following reaction, which species is acting as an acid?
 

 

HPO42- or NH4+