add payment registered function