3.5mm stereo plug to bare wire, pin 1 - red wire is the left channel; Pin 2 - white cable is the right channel; Pin 3 - green cable is microphone; Pin 4 - black cable is ground. It is very easy to handle, just connect the corresponding bare wires together, wrap and seal the bare wires with insulating tapes.
eBay