I would consider making a small (eg. 9mm x 9mm) right-angle PCB and joining it by solder either on the edge or in a slot depending on how long the leads are. You could notch the board for more positive location on the edge.
Lee mas: Asamblea SMT
#Diseño de PCB