On my home page i have a button where i wil link people

On my home page i have a button where i wil link people to a free register page to register as a free member for 30 days after this i want them to pay a monthly membership. After the 30 days trial period they can continue to get access if they have done a payment after this payment they also get acces to more content. After they become a paid member i will have upgrates. Can you please tell me in detail how i can do this.

Thanks