Originally internally coded as LFA, the 2015 Sonata was unveiled in Korea late March 2014, and was unveiled in America at the 2014 New York International Auto Show.
Unless you have a lot experience I would have a repair shop fix it. You can buy a used transmission if you are talking about a manual transmission you should be fine with a used one but if the transmission is automatic I would recommend buying a rebuilt transmission not a used one.