2016 electronic key issue

Does anyone know if this can be done on a DIY basis or do you have to have the dealer do it and charge a fortune? I haven't been able to find a procedure on line that work on my Corolla S model.
Don't know, my friend from DSRLeasing had some problem with keys as well, but he took it to dealer right away. Can't find any diy possibility as well.