Authorize.Net Direct Post - Deprecated

Deprecation Notice
Due to the Payment Service Directive PSD2 and the continued evolution of many APIs, this payment integration is at risk of becoming outdated and no longer security compliant in the future. Additionally, Authorize.Net has deprecated the Authorize.Net Direct Post payment method. We are recommending that you disable it in your Magento configuration and transition to the Authorize.Net Magento Marketplace extension.

This integration is removed from the Magento 2.4.0 release and has been deprecated from current versions of 2.3.

For details about making a secure transition from deprecated payment integrations, see our DevBlog.

Authorize.Net handles all steps in the transaction process, such as payment data collection, data submission, and response to the customer, while the customer remains in your store.

Customer workflow

  1. Customer chooses payment method. During checkout, the customer chooses Authorize.Net Direct Post as the payment method.

  2. Customer submits the order. The customer enters the credit card information, reviews the order, and clicks/taps the Place Order button.

  3. Authorize.Net completes the transaction. Authorize.Net validates the card information, and processes the transaction.

    • If successful, the customer is redirected to the order confirmation page.

    • If the transaction fails, an error message appears, and the customer can try a different card or choose a different payment method.

Authorize.Net account credentials

Sign up for a Authorize.Net online merchant account. You will need the account credentials to connect your account in the Magento Admin.

Set up Authorize.Net Direct Post in Magento

Click Save Config at any time to save your progress.

Step 1: Enable the Authorize.Net Direct Post payment method

  1. On the Admin sidebar, go to Stores > Settings > Configuration.

  2. In the left panel, expand Sales and choose Payment Methods.

  3. If your Magento installation has multiple websites, stores, or views, set Store View to the store view where you want to apply this configuration.

  4. In the Merchant Location section, select the Merchant Country where your business is located.

    Merchant Country Merchant Country

  5. Expand Expansion selector the Deprecated Payment Methods section and the Authorize.Net Direct Post (Deprecated) section.

    Enable Authorize.Net Direct Post (Deprecated) Enable Authorize.Net Direct Post (Deprecated)

  6. Set Enabled to Yes.

  7. Set Payment Action to one of the following:

    Authorize Only Approves the purchase and puts a hold on the funds. The amount is not withdrawn from the customer bank account until the sale is captured by the merchant.
    Authorize and Capture The amount of the purchase is authorized and immediately withdrawn from the customer account.
  8. Enter a Title to identify the Authorize.Net Direct Post payment method during checkout.

Step 2: Enter your Authorize.Net account credentials

  1. Enter the following credentials from your Authorize.Net merchant account:

    • API Login ID
    • Transaction Key
  2. For Merchant MD5, enter the hash value from your Authorize.Net merchant account.

    The value is located on the Authorize.Net website at Account > Settings > Security Settings > MD5-Hash.

  3. Set New Order Status to one of the following:

    • Suspected Fraud
    • Processing
  4. To operate temporarily in a test environment, set Test Mode to Yes.

    When testing the configuration in a sandbox, use only the credit card numbers that are recommended by Authorize.Net. When you are ready to process live transactions, set Test Mode to No.

  5. Enter the Gateway URL that establishes the connect to the Authorize.Net server. The default value is:

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

    If you have received a temporary URL for test transactions, don’t forget to restore the original URL when you are ready to process live transactions.

Step 3: Complete the payment and notification settings

Authorize.nt Direct Post payment settings Authorize.Net Direct Post payment settings

  1. Verify that Accepted Currency is set to US Dollar.

  2. To save messages transmitted between your store and the Authorize.Net Direct Post system, set Debug to Yes.

  3. To set the notification options, do the following:

    • If you want Authorize.Net to send an order confirmation notification to the customer, set Email Customer to Yes.

    • For Merchant’s Email, enter the email address where you want to receive notification of orders placed with Direct Post. Leave blank if you do not want to receive notification.

  4. In the Credit Card Types list, select each credit card that is accepted in your store.

  5. To require customers to enter a card verification value (CVV), set Credit Card Verification to Yes.

  6. Set Payment from Applicable Countries to one of the following:

    All Allowed Countries Customers from all countries specified in your store configuration can use this payment method.
    Specific Countries After you choose this option, the Payment from Specific Countries list is available. To select multiple countries, hold down the Ctrl key (PC) or the Command key (Mac) and click each option.
  7. Enter the Minimum Order Total and Maximum Order Total for Direct Post transactions.

    To qualify, the order total must exactly match the minimum or maximum threshold, or fall somewhere in between.

    Authorize.Net Direct Post additional options Authorize.Net Direct Post additional options

  8. If you offer multiple payment methods, enter a number for Sort Order to determine the sequence in which Authorize.Net Direct Post appears when listed with the other payment methods.

    This is relative to the other payment methods. (0 = first, 1 = second, 2 = third, and so on.)

  9. When complete, click Save Config.