To anyone getting invalid/incorrect code for PSN, the issue is probably wrong region on your code.