The gold pass was a limted time offer in early releases of the retail version, so I'm not sure any more if you can buy a retail version and still find a gold pass code in it
The gold pass is linked to your PSN account so you can sell a retail version of Ridge Racer, buy the download version and the pass is still valid
Without the gold pass the retail and download versions only have the basic 3 tracks and cars.
I'm fairly sure the download version doesn't include the gold pass. I don't know that for sure because when I switched from physical to downlaod version I already had a gold pass linked to my PSN account
I bought ridge racer from the store and got the gold pass free so i think it's with it but i got it at launch so not sure if you still get it with the game.
Apparently the PSN version only supplied the pass until the end of March.
Personally I regret buying it. There is no motivation to play the game without a career mode, it sucks.
I'm living on this blind hope that Namco will release a Ridge Racer 2 on the Vita sometime in the future, much like RR2 on the PSP - pretty much the same game but with all the downloadable tracks, cars, and music already installed there, with a few extra features also.