Hey Gang, I found a friendly locksmith in Mountain View California and he worked with me to program fobs for 2 salvaged leafs I fixed up recently.
At first, I cheaped out and bought the lowest priced knock-offs I could find for fobs on Ebay. They looked right but the logo on the 3rd button was the trunk instead of the charge port. Also they did NOT have the Nissan badge. My guy worked on them for 2 days but could get them to work. I still had to pay him $40 in labor for trying. Lesson learned.
Eventually I bought these fobs for $39.99 each: "OEM NISSAN LEAF smart keyless entry remote fob transmitter CWTWB1U840 +UNCUT KEY" on Ebay.
They worked on my 2014 and 2016 Leafs.
Alan, the owner of Kwik Key Lock and Safe Co, 1949 El Camino Real, Mountain View California, programmed them for me for $49 in labor, plus $2.50 to cut the mechanical key. I also got 2 spare mechanical keys, for an out the door price of only $58.59.
The catch is that he does a largely walk in business, and it's a bit time consuming, so he'd prefer that we can leave the car with him for a day or so. Then he can work on it when the store is quiet. If that's a problem, call ahead and make an appointment for a Tuesday or Thursday, when he has help in the store. I gather it takes some time, so you should still plan to go for a walk and find food near by while he does his thing.
Not counting the learning curve, it was $100 total for each car. That includes the Fob, programming and 2 spare mechanical keys.