If you want the code straight away it's best to buy it off PSN store directly It will attach to your account when you launch the download and you won't have to enter a "code" per se.

Ordering physically the code will be inside the box, and you'll have less playtime >.<