Update ebookDetail front end controller to manage payments