Add-ons and ModulesAuthorize.Net Scheduled Task

Authorize.Net Scheduled Task

Sana Commerce 8.2
Your provider

Configure Authorize.Net Bank Account Confirmation Task

The Authorize.Net Bank Account Confirmation task checks the status of the orders which are transferred through the Authorize.Net Payment Provider ECheck.Net method.

The Authorize.Net Bank Account Confirmation task checks only the orders which are transferred through the live account. The reason of this is that Authorize.Net doesn't save the test orders, so their status cannot be checked.

The configuration of the Authorize.Net Bank Account Confirmation task is performed in the 'sanaCommerce' configuration section of the backoffice 'web.config' file.

To configure the Authorize.Net Bank Account Confirmation task:

Step 1: Copy the 'Sana.Commerce.Payment.AuthorizeNet.dll', 'Sana.Commerce.Payment.AuthorizeNet.pdb' and 'Sana.Commerce.Payment.AuthorizeNet.xml' files from the Authorize.Net release to the 'Backoffice/Bin' folder of Sana Commerce.

Step 2: Open the backoffice 'web.config' file.

Step 3: Locate the 'sanaCommerce' configuration section.

Step 4: Locate the 'tasks' subsection:

 <task name="AuthorizeNetBankAccountConfirmationTask"
       title="Authorize.Net Bank Account Confirmation"
       type="Sana.Commerce.Payment.AuthorizeNet.BankAccountConfirmationTask, Sana.Commerce.Payment.AuthorizeNet"
       time="4:00am"
       enabled="true"
       websiteCode="B2xSql"
       allowManualStart="true"
       login="..."
       transactionKey="..."
       password="..."/>
  

Step 5: Check the following configuration nodes and change them if needed:

time/interval: the daily time or every X seconds when the 'Authorize.Net Bank Account Confirmation' task should be performed;
For more information read this chapter.
websiteCode: the code of the webshop the orders of which should be checked. It is selected from the 'Sana Commerce - Sites' configuration section of the 'web.config' file;
login: the merchant API Login ID which is provided by Authorize.Net;
transactionKey: the key which is provided by Authorize.Net;
password: the merchant password which is provided by Authorize.Net.

Use either the merchant Login ID and Password or the merchant Login ID and Transaction Key. It is not necessary to use both the Password and Transaction Key.

Step 6: Configure the Authorize.Net Merchant Web Service API:

  • Add a new binding configuration entry in the <system.serviceModel><basicHttpBinding> node of the backoffice 'web.config' file:
<binding name="MerchantApiSoap" closeTimeout="00:01:00" openTimeout="00:01:00"
         receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"
         bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
         maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
         messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
         useDefaultWebProxy="true">
       <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
        <security mode="Transport">
          <transport clientCredentialType="None" proxyCredentialType="None" realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
</binding>
  • Add a new endpoint configuration entry in the <system.serviceModel><client> node of the backoffice 'web.config' file:
<endpoint address="https://account.authorize.net/api/merchantapi.asmx"
          binding="basicHttpBinding" bindingConfiguration="MerchantApiSoap"
          contract="MerchantApiSoap.MerchantApiSoap" name="MerchantApiSoap" />
Add-ons and ModulesAuthorize.Net Scheduled Task