How to authenticate for paid users?

Hi, I have an application for a WordPress website which is for a nonprofit society, members should pay 5$ for membership. also there should be ability to make a unique authentication key for each device (such as device ID ).

I will thankful if anyone share idea and solutions.