If you order a new key head, it will come with he electronics and code. You then need to transfer the pill to the new head.
Unfortunately, only a dealer with PST or PIWIS can program it to the car. Some independent mechanics have the tool, but rarely. Most must go to the dealer.
eBay, $150
http://www.ebay.com/itm/221502901084?