spree/spree — pull request #873 by cleverlemming (2011-12-15 06:29:49+00:00)
Title: 779 add invoice number to authnet cim

This addresses one of the two issues in issue #779, where I was getting an error from the authorize.net CIM gateway because of a missing invoice number. I plan to submit a separate pull request for the shipping address part of the issue.

I had difficulties getting running the test specs following the instructions at http://guides.spreecommerce.com/testing.html so this is not fully tested. I have tested it repeatedly in my .60x app using the authorize.net sandbox to make sure the invoice number is sent.

This patch should be applicable to the master branch as the relevant code in core/app/models/spree/gateway/authorize_net_cim.rb hasn't changed.

This is my first patch submission and I apologize in advance for any procedural errors.