We've been working on integrating eCheck.net with Authorize.net's Customer Information Manager (CIM). To do this we utilized the Commerce Bank on File module here:

https://www.drupal.org/project/commerce_bankonfile

To get Commerce Authorize.net working with Commerce Bank on File, we had to do some major patching to both modules. Attached is our initial work.

To get this working you must:

  1. patch Commerce Payment (https://www.drupal.org/node/1661548#comment-6166286)
  2. patch Commerce Authorize.net with the attached patch.
  3. patch Commerce Bank on File (https://www.drupal.org/node/2556193#comment-10972299)

Our testing with these code changes seems to be working quite well.

Comments

pfrilling created an issue. See original summary.

pfrilling’s picture

Issue summary: View changes
train’s picture

Your patch reverts the new API URLs from the dev to the old URLs in 1.3.

@@ -1570,7 +1214,7 @@ function commerce_authnet_aim_server_url($txn_mode) {
   switch ($txn_mode) {
     case AUTHNET_TXN_MODE_LIVE:
     case AUTHNET_TXN_MODE_LIVE_TEST:
-      return variable_get('commerce_authnet_aim_server_url_live', 'https://secure2.authorize.net/gateway/transact.dll');
+      return variable_get('commerce_authnet_aim_server_url_live', 'https://secure.authorize.net/gateway/transact.dll');
     case AUTHNET_TXN_MODE_DEVELOPER:
       return variable_get('commerce_authnet_aim_server_url_dev', 'https://test.authorize.net/gateway/transact.dll');
   }
@@ -1725,7 +1369,7 @@ function commerce_authnet_cim_server_url($txn_mode) {
   switch ($txn_mode) {
     case AUTHNET_TXN_MODE_LIVE:
     case AUTHNET_TXN_MODE_LIVE_TEST:
-      return variable_get('commerce_authnet_cim_server_url_live', 'https://api2.authorize.net/xml/v1/request.api');
+      return variable_get('commerce_authnet_cim_server_url_live', 'https://api.authorize.net/xml/v1/request.api');
     case AUTHNET_TXN_MODE_DEVELOPER:
       return variable_get('commerce_authnet_cim_server_url_dev', 'https://apitest.authorize.net/xml/v1/request.api');
   }
mglaman’s picture

Is this different than #1154294: Add support for eCheck.Net at all?

train’s picture

Yes, this adds support for using eCheck with Auth.net CIM. It requires the patch for eCheck in the referenced thread.