cancel
Showing results for 
Search instead for 
Did you mean: 

Drupal Commerce AIM Integration issues with Sandbox

I'm having issues getting the Drupal Commerce Authorize.net AIM module working with a Sandbox Account.

 

My Sandbox Accout is set to Live and I am using the API login ID and Transaction Key (not Sandbox login credentials) in the 'Enable payment method: Authorize.Net AIM - Credit Card' rule that comes with the module.

 

In this module I have tried 'Test transactions in a live account' which seems to add [x_test_request] => TRUE to the request which is going to:

 

Authorize.Net AIM request to https://secure2.authorize.net/gateway/transact.dll

 

I get this response:

 

(TESTMODE) The merchant login ID or password is invalid or the account is inactive

 

I've also tried doing a 'Live transaction in a live account' which gets the same respone (without the TESTMODE part).

 

Is it correct that a Sandbox call is going to https://secure2.authorize.net/gateway/transact.dll and does anyone have any idea why it might be returning The merchant login ID or password is invalid or the account is inactive. I'm using the test credit card details btw for the transactions.

 

Many thanks

 

Toby

2 REPLIES 2

You should use Sandbox credentials for posting to the Sandbox.

 

In commerce_authnet.module, Drupal Commerce Sandbox call is made to https://test.authorize.net/gateway/transact.dll

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');
    case AUTHNET_TXN_MODE_DEVELOPER:
      return variable_get('commerce_authnet_aim_server_url_dev', 'https://test.authorize.net/gateway/transact.dll');
  }
}

 

Powered by NexWebSites.com -
Certified Authorize.net developers
NexusSoftware
Trusted Contributor

Thanks for your reply.

 

I changed it to Developer mode and it did work and sent the transaction to my Sandbox account as you say. It's just that the UI within Drupal is very confusing and says 'Only specify a developer test account if you login to your account through https://test.authorize.net.' which I don't, I login using https://sandbox.authorize.net. I had read in other places too that the https://test.authroize.net url was reserved for special kind of Sandbox accounts. I guess this is not the case.

 

Thanks again for pointing me in the right direction.