How to Install Authorize.net Direct Post Signature Key Patch with or without SSH in Magento1 & Magento2?

Magento recently introduced Authorize.net Direct Post Signature Key patch. Let’s understand how to install it to ensure seamless payment processing. Follow the step-by-step procedure for easy installation with or without SSH in Magento 1 and Magento 2 stores.

Magento added Authorize.net Direct Post Signature Key patch on March 1, 2019. This patch updates Authorize.Net Direct Post integration to continue processing payments.

Authorize.net payment gateway stopped supporting MD5 based hash usage on March 14, 2019 (see MD5 Hash End of Life & Signature Key Replacement). Magento Community and Enterprise ecommerce software will not be able to process payments using Authorize.net Direct Post payment method. For fixing this issue, you need to apply the patch provided by Magento on your store. We have explained each and every steps for installing this patch on your store.

There are additional steps that you need to execute after installing the patch to ensure continued use of Authorize.Net – read more Update Authorize.Net Direct Post from MD5 to SHA-512.

Note: We strongly recommend that you have to test all the patches in a development environment before applying them on the live store.

1. Apply the Patch

Magento1: Install Authorize.net Direct Post Signature Key patch using SSH

Contact your hosting provider if you don’t know how to set up SSH. Download Magento Authorize.net Direct Post Signature Key Patches files for your Magento Version from here. Upload the patch file into your Magento root directory and run the below SSH command:

For .sh file extension:

sh patch_file_name.sh
Note: Once executed above command then refresh the cache in the Admin under “System > Cache Management” so the changes will be reflected.

Magento1: Install Authorize.net Direct Post Signature Key patch without SSH

Download the Magento CE-1.5.0.1-CE-1.9.4.0 zip file for your Magento Version for the patch installation. After downloading the files, you have to upload in your Magento root folder.

Note: After applied the patch, refresh the cache in the Admin under “System > Cache Management” so the changes will be reflected.

Magento2: Install Authorize.net Direct Post Signature Key patch using SSH (Composer based installations)

Contact your hosting provider if you don’t know how to set up SSH. Download Magento Authorize.net Direct Post Signature Key (Composer based installations) Patches files for your Magento Version from here. Upload the patch file into your Magento root directory and run the appropriate SSH command:

For .patch file extension:

patch —p0 < patch_file_name.patch
Note: Once you executed the command then refresh the cache in the Admin under “System > Tools > Cache Management” so the changes will be reflected.

Magento2: Install Authorize.net Direct Post Signature Key patch without SSH

Download the Magento zip file according to your Magento Version for the patch installation. After downloading the files, just upload it to your Magento root folder.

Magento Version Patch Files
Magento 2.3.0 Magento CE-2.3.0
Magento 2.2.6 to Magento 2.2.7 Magento CE-2.2.6-CE-2.2.7
Magento 2.2.0 to Magento 2.2.5 Magento CE-2.2.0-CE-2.2.5
Magento 2.1.0 to Magento 2.1.9 Magento CE-2.1.0-CE-2.1.9

 

Note: After applied the patch, refresh the cache in the Admin under “System > Tools > Cache Management” so that the changes can be reflected.

Magento Cloud

For Magento Commerce Cloud, apply the M2 patch and deploy. For details, see Apply custom patches.

2. Get a New Signature Key

You need to get a new Signature Key and add it to your Magento Admin configuration. For more information, see What is a Signature Key?

  1. Log into the Merchant Interface at https://account.authorize.net.
  2. Click Account from the main toolbar.
  3. Click Settings in the main left-side menu.
  4. Click API Credentials & Keys.
  5. Select New Signature Key. Review the options available.
  6. Click Submit to continue.
  7. Request and enter PIN for verification.
  8. Your new Signature Key is displayed. Copy this key to add to your Magento Admin configuration.

3. Update Magento Admin Configuration

Take the following steps to update the Magento Admin configuration:

  1. Log into the Magento Admin.
  2. On the Admin sidebar, click Stores. Then under Settings, click Configuration.
  3. In the panel, click Sales then Payment Methods.
  4. Expand the Authorize.net Direct Post section.
  5. In the Signature Key enter the SHA-512 Signature Key.
  6. Click Save Config.

auth-net-signature-key-m2.png

Magento 2 Authorize.Net Direct Post configuration screen

auth-net-signature-key-m1.png

Magento 1 Authorize.Net Direct Post configuration screen

This process complete successful if the Signature Key updates and payment processing continues. If you have any issues, verify the Signature Key with Authorize.Net.

Leave a Reply