Authorize.net Configuration in Magento 2

Magento 2 supports multiple payment methods right out-of-the-box. Plenty of them are third-party solutions. In this article, we’ll discuss Authorize.net which allows your customers to make payments directly on your site. All you need to do is to set it up and start accepting secured payments.

Open the admin panel to begin the Authorize.net configuration. Then, hit the «Store» button, select the «Configuration» option, expand the «Sale» sections and choose the «Payment Methods» option. Here you can find all the available payment methods in your Magento 2 store. Expand the «Authorize.net Direct Post» method to fill in the required details.

First, you need to manually activate the payment method by selecting «Yes» in the appropriate field. Then, you should choose one of the available Payment Actions: Authorize Only or Authorize and Capture.

Here is what each of the actions does:

Authorize Only option authorizes the customer’s card and creates an order, so you can make an invoice and capture the funds later.

Authorize and Capture option simultaneously creates the invoice and captures the funds as well as places the order.

Choose the option that better suits your business needs. Then, enter the name of the payment method in the Title field.

Magento 2 Authorize.net payment

To proceed to the next step you will need to set up and configure the Authorize.net account information: the API Login ID and Transaction Key. When done, you should enter the data from your Authorize.net account to the Merchant MD5 field. Then, specify the New Order status and fill in the Gateway URL with the default link from Authorize.net:

https://secure.authorize.net/gateway/transact.dll

Moreover, to start accepting payments via Authorize.net you need to modify some extra options.

Magento 2 Authorize.net comfig

Define the Accepted Currency to the one you need. If you want to keep information transmitted between your eCommerce store and Authorize.net system, you should enable the Debug option. Also, it may be useful to select Credit Card Types you want to accept payments from and enable the Credit Card Verification option to make customers fill in a CVV code. In addition, you can specify whether to accept payments from all countries or specify the countries for the particular payment method.

This is it. Hit the Save Config button to complete the Authorize.net configuration.