The name on the ticket would match the CC.
I've bought tickets for my wife with her name on the ticket and mine on the card. My folks bought us gift tickets and often buy a ticket for my grandmother when she flies with them. I've even had a ticket transfered from my mom to me as a gift.
Doesn't matter who bought it, as long as the person using it matches ID to the name on the ticket.