added payment functionality part 1