What's the deal with PSA's declared value?

If you give a lower value and the card turns out to be more do they just keep the card and pay you what you declared the value to be?

And what are they using to determine the value?