How to add a plugin or something to allow my customers to accumulate points?

Hello, I want to know how I could create an app that scans a code and allows the customer to accumulate points for it.

So would the user scans some sort of a QR code using their phone’s camera, then it takes them to a page where they can “claim” those points?