It checks a user's identity, looks up his rights, contacts a financial clearing-house to arrange payment and, if everything is in order, decrypts the digital work.
Curiously, Affirm will use Facebook to verify a user's identity, and it'll also use a wide range of social and location-based data to determine an individual's credit worthiness.