A hotel manager who used a customer’s credit card to fraudulently purchase train tickets has been jailed for a year.