To get mobile internet access in Morocco, you must first purchase a SIM card that supports 4G or 5G from a branch of Maroc Telecom, Orange, or Inwi. You will need to present your national ID card if you are Moroccan, or your passport if you are a foreign national.
Once the service is activated, you can top up your credit at a store or via the website of any of the three providers. If you purchase the top-up at a store or branch, you simply enter the provided code into your phone.
Outside of special offers or discounts, the standard rate for mobile data without a contract in Morocco is 10 Dirhams (≈ 0.90 € · 1.00 USD) for 1 GB of data.
For example, if you top up with 50 Dirhams (≈ 4.60 € · 5.20 USD), you will receive 5 GB of data.
AdL Hdr
When you top up your balance through the website, you should receive an SMS code to validate the transaction. I tried it using a Moroccan bank card.