refactoring payment template to not change the url