In the end, she didn't buy a ticket.

Literal

She [topic-は] in-the-end ticket [object-を] did-not-buy.

結局 ('in the end / after all / ultimately') is the discourse adverb that wraps up a process or sequence of expectations and delivers the final tally. Pairing it with a negative ('didn't buy / didn't go / didn't come') is one of its most common uses — the buildup ends not with action but with abstention. 切符 specifically denotes a paper transit ticket; the more general 'ticket' for events, plays, or movies is チケット.