i didnt use pipe on mine
just some 3/8 plate cut into tabs and 3/4" bolts for pins. alternate the tabs like a butt hinge on a door.
Problem with pipe is corrosion. Yes you can drill and tap for zerks but...
Youll also have to weld 2 pieces of square tube in to have something to close against. Basically the new tube will go acrosss both sides of the hinge plane, parallel to the plane, to give an area under compression when the ramp is fully extended and a place to weld the tabs to.
When i built mine, i pieced 4 smaller pieces of tube in each side between the existing supports. This didnt work well and resulted in twisting once the piece was finished welded. A better solution is to leave the new pieces full width when installing. This will give a better finished result plus save half the welding