If you play the game on PS4, you can simply install the game from disc. If you purchased a digital version, activate the key and download the game as usual.
Activation on Vive
Activation on Oculus Rift
If you play on Oculus Rift, you can also watch this video for step by step instructions how to activate: