Upvote:2
You can find the different options that you have here.
The web is in French but it's easy to get what you want. It also gives you the choice of paying with an international credit card in your usual currency (but you have to check the corresponding box).
Today (9/9) there are three different buses and it takes between 45 min and 1 h 15 min depending on the one you choose. The price is 20 or 25 dirhams.