Reply
Highlighted
Member
Posts: 4
Registered: ‎01-11-2017

"Null" Response from Authorized.net 'AuthorizeNetAIM_Response' Object.

Hello Fiends,

 

Good Afternoon all.

 

I am Using "laravel/framework": "4.1.*", PHP SKD of Authorized.net as "authorizenet/authorizenet": "~1.8".

 

I am Integrating the Authorized.net Live Credentials in my Project and Getting a Error With Null Response as a AuthorizeNetAIM_Response Object with all the Fields Set to Null.

 

Null Error Response:

 

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

object(AuthorizeNetAIM_Response)#379 (52) {
  ["_response_array":"AuthorizeNetAIM_Response":private]=>
  array(0) {
  }
  ["approved"]=>
  bool(false)
  ["declined"]=>
  NULL
  ["error"]=>
  bool(true)
  ["held"]=>
  NULL
  ["response_code"]=>
  NULL
  ["response_subcode"]=>
  NULL
  ["response_reason_code"]=>
  NULL
  ["response_reason_text"]=>
  NULL
  ["authorization_code"]=>
  NULL
  ["avs_response"]=>
  NULL
  ["transaction_id"]=>
  NULL
  ["invoice_number"]=>
  NULL
  ["description"]=>
  NULL
  ["amount"]=>
  NULL
  ["method"]=>
  NULL
  ["transaction_type"]=>
  NULL
  ["customer_id"]=>
  NULL
  ["first_name"]=>
  NULL
  ["last_name"]=>
  NULL
  ["company"]=>
  NULL
  ["address"]=>
  NULL
  ["city"]=>
  NULL
  ["state"]=>
  NULL
  ["zip_code"]=>
  NULL
  ["country"]=>
  NULL
  ["phone"]=>
  NULL
  ["fax"]=>
  NULL
  ["email_address"]=>
  NULL
  ["ship_to_first_name"]=>
  NULL
  ["ship_to_last_name"]=>
  NULL
  ["ship_to_company"]=>
  NULL
  ["ship_to_address"]=>
  NULL
  ["ship_to_city"]=>
  NULL
  ["ship_to_state"]=>
  NULL
  ["ship_to_zip_code"]=>
  NULL
  ["ship_to_country"]=>
  NULL
  ["tax"]=>
  NULL
  ["duty"]=>
  NULL
  ["freight"]=>
  NULL
  ["tax_exempt"]=>
  NULL
  ["purchase_order_number"]=>
  NULL
  ["md5_hash"]=>
  NULL
  ["card_code_response"]=>
  NULL
  ["cavv_response"]=>
  NULL
  ["account_number"]=>
  NULL
  ["card_type"]=>
  NULL
  ["split_tender_id"]=>
  NULL
  ["requested_amount"]=>
  NULL
  ["balance_on_card"]=>
  NULL
  ["response"]=>
  NULL
  ["error_message"]=>
  string(32) "Error connecting to AuthorizeNet"
}

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

 

 

After Googling this Error I Found a Solution that Change you cert.pem file so We have Changed the "\vendor\authorizenet\authorizenet\lib\ssl\cert.pem" file with the Latest PHP SDK cert.pem file.

After we changed that file the Error of null response Error is Fixed but new Error Is Generated Which is "The merchant login ID or password is invalid or the account is inactive."

 

Some times it Shows "The merchant login ID or password is invalid or the account is inactive."  error and Sometimes it Shows "Your Transaction is Declined" Error.

 

Response :

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

object(AuthorizeNetAIM_Response)#379 (52) {
  ["_response_array":"AuthorizeNetAIM_Response":private]=>
  array(69) {
    [0]=>
    string(1) "3"
    [1]=>
    string(1) "2"
    [2]=>
    string(2) "13"
    [3]=>
    string(72) "The merchant login ID or password is invalid or the account is inactive."
    [4]=>
    string(0) ""
    [5]=>
    string(1) "P"
    [6]=>
    string(1) "0"
    [7]=>
    string(0) ""
    [8]=>
    string(0) ""
    [9]=>
    string(5) "20.00"
    [10]=>
    string(0) ""
    [11]=>
    string(12) "auth_capture"
    [12]=>
    string(0) ""
    [13]=>
    string(0) ""
    [14]=>
    string(0) ""
    [15]=>
    string(0) ""
    [16]=>
    string(0) ""
    [17]=>
    string(0) ""
    [18]=>
    string(0) ""
    [19]=>
    string(0) ""
    [20]=>
    string(0) ""
    [21]=>
    string(0) ""
    [22]=>
    string(0) ""
    [23]=>
    string(0) ""
    [24]=>
    string(0) ""
    [25]=>
    string(0) ""
    [26]=>
    string(0) ""
    [27]=>
    string(0) ""
    [28]=>
    string(0) ""
    [29]=>
    string(0) ""
    [30]=>
    string(0) ""
    [31]=>
    string(0) ""
    [32]=>
    string(0) ""
    [33]=>
    string(0) ""
    [34]=>
    string(0) ""
    [35]=>
    string(0) ""
    [36]=>
    string(0) ""
    [37]=>
    string(32) "16591EB3BCB5D2A758F83028391941F5"
    [38]=>
    string(0) ""
    [39]=>
    string(0) ""
    [40]=>
    string(0) ""
    [41]=>
    string(0) ""
    [42]=>
    string(0) ""
    [43]=>
    string(0) ""
    [44]=>
    string(0) ""
    [45]=>
    string(0) ""
    [46]=>
    string(0) ""
    [47]=>
    string(0) ""
    [48]=>
    string(0) ""
    [49]=>
    string(0) ""
    [50]=>
    string(0) ""
    [51]=>
    string(0) ""
    [52]=>
    string(0) ""
    [53]=>
    string(0) ""
    [54]=>
    string(0) ""
    [55]=>
    string(0) ""
    [56]=>
    string(0) ""
    [57]=>
    string(0) ""
    [58]=>
    string(0) ""
    [59]=>
    string(0) ""
    [60]=>
    string(0) ""
    [61]=>
    string(0) ""
    [62]=>
    string(0) ""
    [63]=>
    string(0) ""
    [64]=>
    string(0) ""
    [65]=>
    string(0) ""
    [66]=>
    string(0) ""
    [67]=>
    string(0) ""
    [68]=>
    string(0) ""
  }
  ["approved"]=>
  bool(false)
  ["declined"]=>
  bool(false)
  ["error"]=>
  bool(true)
  ["held"]=>
  bool(false)
  ["response_code"]=>
  string(1) "3"
  ["response_subcode"]=>
  string(1) "2"
  ["response_reason_code"]=>
  string(2) "13"
  ["response_reason_text"]=>
  string(72) "The merchant login ID or password is invalid or the account is inactive."
  ["authorization_code"]=>
  string(0) ""
  ["avs_response"]=>
  string(1) "P"
  ["transaction_id"]=>
  string(1) "0"
  ["invoice_number"]=>
  string(0) ""
  ["description"]=>
  string(0) ""
  ["amount"]=>
  string(5) "20.00"
  ["method"]=>
  string(0) ""
  ["transaction_type"]=>
  string(12) "auth_capture"
  ["customer_id"]=>
  string(0) ""
  ["first_name"]=>
  string(0) ""
  ["last_name"]=>
  string(0) ""
  ["company"]=>
  string(0) ""
  ["address"]=>
  string(0) ""
  ["city"]=>
  string(0) ""
  ["state"]=>
  string(0) ""
  ["zip_code"]=>
  string(0) ""
  ["country"]=>
  string(0) ""
  ["phone"]=>
  string(0) ""
  ["fax"]=>
  string(0) ""
  ["email_address"]=>
  string(0) ""
  ["ship_to_first_name"]=>
  string(0) ""
  ["ship_to_last_name"]=>
  string(0) ""
  ["ship_to_company"]=>
  string(0) ""
  ["ship_to_address"]=>
  string(0) ""
  ["ship_to_city"]=>
  string(0) ""
  ["ship_to_state"]=>
  string(0) ""
  ["ship_to_zip_code"]=>
  string(0) ""
  ["ship_to_country"]=>
  string(0) ""
  ["tax"]=>
  string(0) ""
  ["duty"]=>
  string(0) ""
  ["freight"]=>
  string(0) ""
  ["tax_exempt"]=>
  string(0) ""
  ["purchase_order_number"]=>
  string(0) ""
  ["md5_hash"]=>
  string(32) ""
  ["card_code_response"]=>
  string(0) ""
  ["cavv_response"]=>
  string(0) ""
  ["account_number"]=>
  string(0) ""
  ["card_type"]=>
  string(0) ""
  ["split_tender_id"]=>
  string(0) ""
  ["requested_amount"]=>
  string(0) ""
  ["balance_on_card"]=>
  string(0) ""
  ["response"]=>
  string(333) "|3|,|2|,|13|,|The merchant login ID or password is invalid or the account is inactive
.|,||,|P|,|0|,||,||,|20.00|,||,|auth_capture|,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,
||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||
,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||,||"
  ["error_message"]=>
  string(257) "AuthorizeNet Error:
                Response Code: 3
                Response Subcode: 2
                Response Reason Code: 13
                Response Reason Text: The merchant login ID or password is invalid or the account is
 inactive.
                "
}

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

 

I am Not Getting the Actual Problem What Is Happneing here.

I am Googling for last two day and Tried Each and Every thing as a Solution but Sill Getting the Same Error.

 

One thing I Have To Say is That When We Set Sandbox Account Credentials, Everything Works Fine.

 

Thanks All.

Highlighted
All Star
Posts: 699
Registered: ‎11-03-2016

Re: "Null" Response from Authorized.net 'AuthorizeNetAIM_Response' Object.

Hi @jaimin,

 

If things are working fine with sandbox credentials but not with live credentials, make sure you are reconfiguring your application to point to the live server when you switch to the live credentials. If you're already doing that, you can double-check to make sure your credentials are correct by comparing them to what you have displayed when you log in to the merchant interface.

 

Additionally, you may want to consider upgrading the version of the PHP SDK you're using, as the newer version we have available has many bug fixes and improvements compared to the older one you have installed.

Highlighted
Member
Posts: 1
Registered: ‎11-22-2017

Re: "Null" Response from Authorized.net 'AuthorizeNetAIM_Response' Object.

I am Using "Joomla": "3.8.2*", PHP SKD of Authorized.net as "authorizenet/authorizenet": "~1.8".

 

I am Integrating the Authorized.net Live Credentials in my Project and Getting an Error Is Generated Which is "The merchant login ID or password is invalid or the account is inactive."