The Most Popular Extension Builder for Magento 2

With a big catalog of 224+ extensions for your online store

How to set up Authorize.Net in Magento 2?

Authorize.Net Direct Post is useful for Magento websites that have a plenty of stores as merchants who can totally manage their checkout pages. Particularly, merchants have their own accounts on Authorize.Net and they will complete all checkout content and forms on their sites. In fact, this will bring more security for merchant payment information as the form is posted to Authorize.Net’s secure servers. It is clearly visible that Authorize.Net Direct Post plays the role of a third-party in the Magento site, same same as PayPal. However, with Authorize.Net, customers can finish the transaction process while remaining in the Magento store, instead of being redirected to the third-party website.

Authorize.Net Direct Post

Set up Authorize.Net

Step 1: Prepare for Authorize.Net Direct Post Method

This step is about preparing the appearance of Authorize.Net Direct Post payment method to display on your checkout page. Let’s follow the instructions below.

  • On the Admin sidebar, click Stores > Settings > Configuration.
  • In the panel on the left, choose Sales > Payment Methods.
  • Click to expand the Authorize.Net Direct Post section and set options.
    • In the Enabled field, set Yes to activate Authorize.Net Direct Post.
    • In the Set Payment Action field, select Authorize Only to accept Authorize.Net to authorize customer’s funds, and create an order in your store. After the process, you can compose an invoice and capture the customer’s funds. Or select Authorize and Capture to let Authorize.Net authorize and capture customer’s funds and creates an order and invoice in your store.
    • In the Title field, enter a new name for Authorize.Net Direct Post to show on the checkout page or leave the default of “Credit Card Direct Post (”.

Authorize.Net Direct Post

Step 2: Set the basement

Before launching the Authorize.Net Direct Post Method for your Magento store you need to set the basement which actually is the process of providing your Authorize.Net merchant account.

  • In the API Login ID, Transaction Key and Merchant MD5 fields, enter your credentials and hash value from your Authorize.Net merchant account. You can find hash value on the Authorize.Net website at Account > Settings > Security Settings > MD5-Hash.
  • In the New Order Status field, set Processed Ogone Payment or Processing to suitable with the nature of the transaction.
  • Leave the Test Mode field to Yes to set your configuration in the test environment. When you are sure that the system runs well and there is no bug, turn Test Mode into No for adapting on live transaction.
  • In the Gateway URL and Transaction Details URL fields, type the new URLs or leave them in the default. In case you receive a temporary URL for test transactions, remember to restore the original URL when you are ready to process live transactions.

Authorize.Net Direct Post

Step 3: Complete the last configuration

This is the last step of the guidance which concludes the common requirement for configuring payment methods in Magento.

  • In the Accepted Currency field, choose the currency being circulated in your location or use the one that gives your target customers the most convenience at checkout.
  • Set Debug to Yes to save logs between your store and the Authorize.Net system.
  • Set Email Customer to Yes if you want to send emails to customers then type your business email address in the Merchant’s Email field.
  • In the Credit Card Types box, select all type of credit card that is accepted in your store.
  • Set Credit Card Verification to Yes to require customers to enter a card verification value.
  • In the Payment from Applicable Countries field, choose All Allowed Countries to accept Authorize.Net Direct Post for customers from all countries specified in your store configuration or Specific Countries to approve this payment method for some definite countries which you select from the Payment from Specific Countries list.
  • In the Minimum Order Total and Maximum Order Total fields, set the order amounts required to qualify for this payment method.
  • In the Sort Order field, enter a number to determine the position of Authorize.Net Direct Post in the list of payment methods that is shown during checkout (start from 0).

Authorize.Net Direct Post

  • Click Save Config button in the upper-right corner when you are done.

Related Post

Image Description
Hello, I'm the Chief Technology Officer of Mageplaza, and I am thrilled to share my story with you. My deep love and passion for technology have fueled my journey as a professional coder and an ultra-marathon runner. Over the past decade, I have accumulated extensive experience and honed my expertise in PHP development.

Looking for
Customization & Development Services?

8+ years of experiences in e-commerce & Magento has prepared us for any challenges, so that we can lead you to your success.

Get free consultant
development service

    Explore Our Products:

    People also searched for


    Stay in the know

    Get special offers on the latest news from Mageplaza.

    Earn $10 in reward now!

    Earn $10 in reward now!

    go up