Authorize.Net TestMode

Discussion in 'Payments processing' started by karlpalachuk, Jan 20, 2011.

  1. karlpalachuk

    karlpalachuk New Member

    Joined:
    Jul 22, 2008
    Messages:
    14
    Hello All,

    I'm converting over from the 1ShoppingCart payment system to Authorize.Net but I think I'm doing something incorrectly.

    I've setup a Developer Test Account and created the API key etc...

    But when I enter this info into the aMember CIM plugin and try to test I get the following error:

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

    Here's the log entry for the test user

    RESULT 3
    RESULT_SUB 2
    REASON_CODE 13
    RESPMSG (TESTMODE) The merchant login ID or password is invalid or the account is inactive.
    AVS P
    PNREF 0
    CVV_VALID

    Does this work with the Developer account, sandbox.authorize.net or do I have to use a "real" merchant account ?

    Thanks,
    Jw

    PS. I've used the sample code from Authorize.Net with my Keys and it works fine.

    <pre>
    This sample code is designed to generate a post using Authorize.net's Advanced Integration Method (AIM) and display the results of this post to the screen.

    For details on how this is accomplished, please review the readme file, the comments in the sample code, and the Authorize.net AIM API documentation found at http://developer.authorize.net


    --------------------------------------------------------------------------------

    1
    1
    1
    (TESTMODE) This transaction has been approved.
    000000
    P
    0

    Sample Transaction
    19.99
    CC
    auth_capture

    John
    Doe

    1234 Street

    WA
    98004
    </pre>
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
  3. karlpalachuk

    karlpalachuk New Member

    Joined:
    Jul 22, 2008
    Messages:
    14
    [Solved] Authorize.Net TestMode (Patch)

    That's the ticket...

    For anyone else here's the patch I used in plugins/payment/authorize_aim.inc.php (line:55):

    PHP:
           if ($this->config['testing']) {
                
    $this->tpu "https://test.authorize.net/gateway/transact.dll";
            } else {
                
    $this->tpu "https://secure.authorize.net/gateway/transact.dll";
            }
            
    $ret cc_core_get_url($this->tpu$vars1);
    Jw

Share This Page