Membership used for a community center

Have you ever/Can you use membership as a tool for a community center’s pool privileges with something like an id scanner? So that when they have paid, they get access, when they haven’t… You get it, right?

Is there a way to access the info like that?