If the upgrade isn't valid, then it'll say so, and you won't get credit.
Obviously, you wouldn't pay the person. And if you did, then you're either dealing with a scammer or someone who had an invalid upgrade. If they're legit and had an invalid upgrade, then they'll refund you.