added payment functionality