AKA "Container-deposit legislation" (or "Pant" as we call it in Sweden and maybe also Germany?). Seems to work very well, and you also have a ton of people collecting cans that others throw in the environment, as they'll get money for it.
Kind of wish we had it here in Spain too, as the environment and the sea ends up with a lot of cans and glass bottles. Seems like such an obvious idea to have nationwide.