Refactoring ticket pay