Buy at the duty-free shop at the airport, and they deliver it to the passenger on the plane. Obviously, to be in the terminal and even visit the duty-free one has to be a ticketed flier with a boarding pass. At the point of purchase this information is given to the duty-free cashier, who notes the flight and seat information for proper (and timely) delivery.