This is an automatic service, lead time of 3-4 minutes. The code will come to the specified e-mail when you pay.
If you are installing a foreign SIM card will request the code there and enter the security code. Not to be confused with the PIN code that SIM card.
The code is entered once and for all, more requests when a new SIM card will not.