avoid member to navigate until the complete the paymet

Hello, when a future member signes up he is sent to the payment gateway but if he does not complete the payment , when he backs to site he is already logged in ( an user have beeb already created in inactive way but the visitor can navigate inside the site (protected contain) until he does log out.

How do i need to set up the membership plugin in oder to make people to login only after the payment really completed?

I don’t know if i’m clear enough.

Thank you.