Great, thanks. That change let the order go through to the payment gateway. Now I get this error;
Parse error: syntax error, unexpected 'purchases' (T_STRING) in /home4/user/site/webassist/email/waue_5b_1.php on line 52
I looked at line 52 and it's part of the ecart generated code, so I'm not sure. I've attached that file.