template payment added and small php fixed