When I got locking gas caps for my 1986 and 1988 240s I first called the dealer parts desk for a price. $27.00, last year. Gulp!
So I went to my friendly neighborhood AutoZone and bought two for $15, with matching keys. They said they were OK for my car.
The one most used failed before a year had passed. It stayed in the unlocked postion regardless. They were on when the emission test was done, not a problem.