For some reason the usage example provided on fORM for registerActiveRecordMethod wasn't working for me. I was getting the following error:
Parameter 7 to Order::convertToXML() expected to be a reference, value given
I changed the seventh parameter from &$parameters to $parameters and now it appears to be working properly.