It does check the barcode, but a generic coke bottle could have been purchased in Washington and returned across the boarder for 10 cents.
That’s a valid bottle, but an abuse of the system because they are getting 10 cents from Oregon that was never paid. The point of the program is you pay 10 cents and get it back if you recycle.