Reply
Highlighted
Member
Posts: 1
Registered: ‎12-21-2018

Code 13 Response using Direct Post on Magento 2

I am receiving a Code 13 response from the authorize.net gateway when I try to run a transaction through Magento 2. I have ensured the API Login ID is correct, I have reset the transaction key and I have created a ten character MD5 that I have put into Authorize.net and the Magento 2 admin. Have triple checked the credentials and verified with Authorize.net support that the account in use is functional.

 

I am using Magento 2.2.6.

 

I have tried these gateway URLs: https://secure.authorize.net/gateway/transact.dll and https://secure2.authorize.net/gateway/transact.dll.

 

Here is a sample request being sent to the auth.net gateway:

[2018-12-21 20:13:30] main.DEBUG: array (
  'request' =>
  array (
    'x_version' => '3.1',
    'x_delim_data' => 'FALSE',
    'x_relay_response' => 'TRUE',
    'x_test_request' => 'FALSE',
    'x_login' => '****',
    'x_method' => 'CC',
    'x_relay_url' => 'https://www.domain.com/authorizenet/directpost_payment/response',
    'x_type' => 'AUTH_CAPTURE',
    'x_fp_sequence' => '379',
    'x_invoice_num' => '000000087',
    'x_amount' => 43.99,
    'x_currency_code' => 'USD',
    'x_tax' => '0.00',
    'x_freight' => '5.00',
    'x_first_name' => 'First',
    'x_last_name' => 'Last',
    'x_company' => '',
    'x_address' => 'address',
    'x_city' => 'city',
    'x_state' => 'state',
    'x_zip' => 'zip',
    'x_country' => 'US',
    'x_phone' => '555-555-5555',
    'x_fax' => '',
    'x_cust_id' => '',
    'x_customer_ip' => '<valid ip>',
    'x_customer_tax_id' => '',
    'x_email' => '<valid email>',
    'x_email_customer' => '1',
    'x_merchant_email' => '<merchant email>',
    'x_ship_to_first_name' => 'First',
    'x_ship_to_last_name' => 'Last',
    'x_ship_to_company' => '',
    'x_ship_to_address' => 'Address',
    'x_ship_to_city' => 'City',
    'x_ship_to_state' => 'State',
    'x_ship_to_zip' => 'Zip',
    'x_ship_to_country' => 'US',
    'x_po_num' => '',
    'x_fp_timestamp' => 1545423210,
    'x_fp_hash' => '0077c5bbb96582450abc5bd8db7d29b3',
  ),
) [] []

 

Response from network inspector:

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

 

Any assistance would be appreciated.