I made a site that sells services in Commerce 2. I want to hide access to the "Orders" and "Payment info" pages until a user purchases the first product.
To do this, I created a role, Paid, for users who have purchased something. This role has permission to view orders and so forth.
Which hook should I use to give the user the Paid role after making a purchase?