Thus, the name on the frequent flyer account and the name on the ticket must match exactly. You can't put your loyalty number on someone else's ticket to receive miles for a flight where you weren't the passenger. Even if you paid for the ticket, only the passenger earns miles from the flight.