Ok, I will help if I can. I do not know what the eighth wire is but I can tell how to wire the plug that plugs into the female socket that is on the vehicle side.
Looking at the plug that plugs into truck from your trailer or RV. Look at the plug with the locator pin straight up. Going counter clock wise the pin are: TAIL LIGHTS, LEFT TURN, GROUND, ELECTRIC BRAKES, RIGHT TURN, BATTERY, AND THE CENTER PIN IS FOR BACKUP LIGHTS
That adds up the 7 wires. I have no idea what the 8th wire may be used for. If you have a meter you should be able to back into the wiring. I wonder if they have a separate ground for the brakes. A very non educated guess. Good luck!! Let me know if you have other questions.