How can I make subscriptions?

I want to make different kinds of subscriptions in my game, there will be 3 with different benefits, how can I make a user create its own game account and have a suscription? Do I need a database?

Use a game backend such as Playfab or Gamesparks:

An online search for something like “game backend” would give you more choices./