Elaborate sex tape scams pay ... just ask "Teen Mom" star Farrah Abraham who finally struck a deal for her on-camera banging session ... in the HIGH six figures.

Last time we saw Farrah she was marching into the Vivid offices with her father and daughter in tow to talk dollars and cents with porn king Steve Hirsch -- who's been interested in buying the "Teen Mom"/James Deen XXX vid from the get-go.

Even though Farrah said she was considering other offers ... sources close to the situation tell TMZ, Farrah finally inked a deal with Vivid ... for close to a million dollars.