Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Third party buys them and sells them. Third party pays Apple for the value (minus percentage). Apple is giving you the funds ahead of time.
It depends on the country really. For those interested in the officially posted info,


Click through for your country. For the US, it’s here.

 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.