Update angularjs code for marking payments