We've had a few discussions recently with a common theme: someone has bought some 6502-family chips online and is concerned that they might not be right.
This is by way of a heads-up: as a buyer, you need to beware! If you buy from a high-reputation seller, you will very probably get the product you expect (and if not, you will probably get a replacement without much bother.)
But if you buy from any other seller, you might get anything. I reckon there's a fairly good chance that you'll get a 6502 if you tried to buy a 6502, but it might not be the speed grade you expected, it might be NMOS or CMOS regardless of what you expected, and it almost certainly will be pre-loved. That is, it will be a chip salvaged from historical equipment, possibly cleaned-up and possibly remarked, and probably not tested.
It may be that the marketplace you used has some kind of reputation system for sellers: if it does, use it! Choose a seller with a higher reputation, and always claim for a replacement if the parts you bought are not what they should be.
You will have your own attitude to risk and reward: you might like the excitement of a lottery, you might have a high preference for spending the minimum amount of money, you might like the adventure of testing a chip to see what it is and how fast it goes (and what temperature it runs at.)
If you prefer to get exactly what the description described, please buy from an official supplier, and be prepared to pay the price, the tax, the shipping, the import duty if applicable, and maybe even the handling charge.
If you prefer to take a risk, be prepared to do some diagnosis and be ready to reverse the transaction.
Please don't treat the suppliers as fraudulent, or describe the whole marketplace or an entire nation as being corrupt: you were playing by their rules, not your rules, and you were aiming to spend infeasibly small amounts for something that mattered to you. The seller may have no idea what a 6502 is, or what the different types are, or that 40 pin packages contain a variety of very different chips. Or they may be very capable and honest but have a bad supply chain. You dealt with someone you don't know, and you accepted their description at face value, and by some reckonings that makes you an ideal customer for sharp practice.
For an interesting take on how the supply chain can work, see
this great post on Bunnie's blog. He's literally written the book on
doing business in Shenzhen.
Edit: perhaps see also
65xx parts sources, genuine and fake