How does the affiliate plugin record a sale? How do I integrate it with my payment processor?

I don't understand how this plugin records a 'sale' when there's no script to place on the thank you page? I guess I assumed this was a complete script but it looks like extensive customization is needed for it to work. Am I wrong?