Shopify/active_merchant — pull request #425 by davetron5000 (2012-07-31 18:37:04+00:00)
Title: move card code to where it works with the XSD

The Authorize.net XSD requires that order come before cardCode. The current
implementation has it going the other way, and since the remote tests don't set
the card_code in the transaction AND the unit tests don't validate against
their schema, we can't see the bug.

I cannot run the remote tests for whatever reason, but I believe if you
run them using the modified test, you should see a failure
that is fixed by applying the change to authorize_net_cim.rb.

I can recreate this easily in my environment, and this fixes it - I just
don't know how to run the remote tests here. Happy to do so if someone
can show me how.