I moved the script to the live site, root domain, same server same everything with the exception of:
-Different URL (one is test.domain.com, live is domain.com)
-Live site has https:// test doesn't
My question is - could this have something to do with the secure URL? The script doesn't seem to register the sale and affiliate info properly in the database but it does on the test. SO confused.