Before setting up Office 365 you should have an account with Microsoft or can form a one. Then go to your account and search for Office 365, the page will show you the product and the detail. You will also see the 1-month free trial option and the subscription option.
Select your product and choose the mode of payment. You will get the product now the process of installation will start.