I knew about programming the new fob yourself by reading the manual while waiting for the car to be delivered. One of the fobs for my LEAF is dead and Nissan's new fob cost about the same and there is no programming it yourself. I am living with one working fob and was assured by my dealer's LEAF mechanic that it wouldn't cost any more to get a replacement if the second one was gone.
2019 Chevy Bolt LT w/ FC & DC II, named Orion L-ion
2013 Nissan LEAF S w/ QC, named Leafy McLeaf Face
2014 Toyota Prius v/5
Schneider EVlink L2 charging
EV driver since March 2013