Implemented payment functionality