<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Intuit code not working...need help with integration in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Intuit-code-not-working-need-help-with-integration/m-p/46763#M23637</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are a small, family operated business that has successfully processed with Echo/Intuit for 18 years.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Intuit bought Echo and then stopped processing for us, so we are now processing with Authorize.net.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when we used Echo, then Intuit, we successfully&amp;nbsp;processed online with&amp;nbsp;a custom built database: Access 2007 using SQL Server 2008 on a Dell Server in our office. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The programmer who put this together is no longer available, so we have to figure this out for ourselves.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for taking a look and any help you can offer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Emily&lt;/P&gt;&lt;P&gt;support@b610.com&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code from SQL2008:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Option Compare Database&lt;/P&gt;&lt;P&gt;Private Sub Command2_Click()&lt;/P&gt;&lt;P&gt;TransCounter = 0&lt;/P&gt;&lt;P&gt;DoCmd.RunCommand acCmdSaveRecord&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;' Set the recordset to current recordset&lt;/P&gt;&lt;P&gt;Dim rst As ADODB.Recordset&lt;BR /&gt;Set rst = Me.Recordset.Clone&lt;BR /&gt;&lt;BR /&gt;rst.MoveFirst&lt;BR /&gt;&lt;BR /&gt;' start a loop to go through payment records&lt;BR /&gt;Do&lt;BR /&gt;&lt;BR /&gt;' Start Instance of Echo&lt;/P&gt;&lt;P&gt;Dim order_submit As Boolean&lt;BR /&gt;Dim EGateway As ECHOCom.Echo&lt;/P&gt;&lt;P&gt;Set EGateway = New ECHOCom.Echo&lt;/P&gt;&lt;P&gt;EGateway.ECHOCom_Initialize&lt;/P&gt;&lt;P&gt;' Enter merchant account information&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EGateway.merchant_echo_id = "*********" 'fill this in&lt;BR /&gt;EGateway.merchant_pin = "******************" 'fill this in&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;EGateway.transaction_type = "EV"&lt;BR /&gt;EGateway.order_type = "S"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;EGateway.ConnectTimeout = 6000&lt;BR /&gt;EGateway.SendTimeOut = 10000&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'Get Fields from Payment Table&lt;BR /&gt;Dim vAddress As String&lt;BR /&gt;Dim vAddress2 As String&lt;BR /&gt;Dim vZip As String&lt;BR /&gt;Dim vCountry As String&lt;BR /&gt;Dim vphone As String&lt;BR /&gt;Dim vCreditcard As String&lt;BR /&gt;Dim vCCyr As String&lt;BR /&gt;Dim vCCM As String&lt;BR /&gt;Dim vOrderID&lt;/P&gt;&lt;P&gt;'On Error Resume Next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;vOrderID = rst.Fields("OrderID")&lt;BR /&gt;vAddress = rst.Fields("BAddress")&lt;BR /&gt;'vAddress2 = rst.Fields("BAddress2")&lt;BR /&gt;vZip = rst.Fields("BZip")&lt;BR /&gt;vphone = rst.Fields("bPhone")&lt;BR /&gt;vCreditcard = rst.Fields("CCNumber")&lt;BR /&gt;vCCyr = rst.Fields("CCExpM")&lt;BR /&gt;vCCM = rst.Fields("CCExpY")&lt;BR /&gt;vOrderID = rst.Fields("OrderID")&lt;BR /&gt;vPaymentID = rst.Fields("PaymentID")&lt;BR /&gt;vFirstName = rst.Fields("FirstName")&lt;BR /&gt;vLastName = rst.Fields("LastName")&lt;BR /&gt;vTotalAmount = rst.Fields("TotalAmount")&lt;BR /&gt;vCountry = rst.Fields("Country")&lt;BR /&gt;vCSV = rst.Fields("EnteredBy")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'BackOrder Fields&lt;BR /&gt;vBO = rst.Fields("BO")&lt;BR /&gt;vBOID = rst.Fields("BackOrderID")&lt;BR /&gt;vBOProductID = rst.Fields("BOProductID")&lt;BR /&gt;countdig = Len(vTotalAmount)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;' Checks the amount and put it in currency format&lt;BR /&gt;' *********************************************************************************&lt;BR /&gt;&lt;BR /&gt;If countdig &amp;lt;= 3 Then&lt;BR /&gt;vTotalAmount = vTotalAmount &amp;amp; ".00"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Else&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dim HMN&lt;BR /&gt;Dim words() As String&lt;BR /&gt;words() = Split(vTotalAmount, ".")&lt;BR /&gt;HMN = Len(words(1))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;If HMN = "" Then&lt;BR /&gt;vTotalAmount = vTotalAmount &amp;amp; ".00"&lt;BR /&gt;Else&lt;BR /&gt;&lt;BR /&gt;If HMN = 1 Then&lt;BR /&gt;vTotalAmount = vTotalAmount &amp;amp; "0"&lt;BR /&gt;Else&lt;BR /&gt;&lt;BR /&gt;If HMN &amp;gt; 1 Then&lt;BR /&gt;PercentValue = Right(words(1), 2)&lt;BR /&gt;vTotalAmount = words(0) &amp;amp; "." &amp;amp; PercentValue&lt;BR /&gt;Else&lt;BR /&gt;&lt;BR /&gt;vTotalAmount = vTotalAmount&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;'*******************************************************************************&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;On Error Resume Next&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'Enables counter&lt;BR /&gt;TransCounter = TransCounter + 1&lt;BR /&gt;EGateway.Counter = TransCounter&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;' Assign payment details to the echo varibles&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;EGateway.billing_address1 = vAddress&lt;BR /&gt;EGateway.billing_address2 = vAddress2&lt;BR /&gt;EGateway.billing_zip = vZip&lt;BR /&gt;EGateway.billing_phone = vphone&lt;BR /&gt;EGateway.cc_number = vCreditcard&lt;BR /&gt;EGateway.ccexp_month = vCCyr&lt;BR /&gt;EGateway.ccexp_year = vCCM&lt;BR /&gt;EGateway.cnp_security = vCSV&lt;BR /&gt;EGateway.DebugEcho = "F"&lt;BR /&gt;EGateway.EchoServer = "&lt;A href="https://secure.authorize.net/gateway/transact.dll&amp;quot;" target="_blank"&gt;https://secure.authorize.net/gateway/transact.dll"&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Get The Total Of The order&lt;/P&gt;&lt;P&gt;EGateway.grand_total = vTotalAmount&lt;BR /&gt;EGateway.merchant_email = "support@b610.com"&lt;BR /&gt;EGateway.product_description = "Sale"&lt;/P&gt;&lt;P&gt;order_submit = EGateway.Submit&lt;/P&gt;&lt;P&gt;If order_submit = True Then&lt;/P&gt;&lt;P&gt;vdate1 = Date&lt;BR /&gt;a = Split(vdate1, "/")&lt;BR /&gt;vMonth = a(0)&lt;BR /&gt;vDay = a(1)&lt;BR /&gt;vYear = a(2)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;OrgAmount = vTotalAmount&lt;BR /&gt;OrgTDmm = vMonth&lt;BR /&gt;OrgTDdd = vDay&lt;BR /&gt;OrgTDyyyy = vYear&lt;BR /&gt;OrderNumber = EGateway.order_number&lt;BR /&gt;CCNumber = EGateway.cc_number&lt;BR /&gt;CCExpM = EGateway.ccexp_month&lt;BR /&gt;CCExpY = EGateway.ccexp_year&lt;BR /&gt;CPhone = vphone&lt;BR /&gt;ORef = EGateway.original_reference&lt;BR /&gt;vvCSV = EGateway.cnp_security&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'If payment was accepted&lt;BR /&gt;'set cleared to true&lt;BR /&gt;&lt;BR /&gt;Cleared = "True"&lt;BR /&gt;' Get auto number&lt;BR /&gt;AuthoNum = EGateway.authorization&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;' Display Auto info&lt;BR /&gt;&lt;BR /&gt;MsgBox (" The OrderNumber " &amp;amp; vOrderID &amp;amp; " for " &amp;amp; vFirstName &amp;amp; " " &amp;amp; vLastName &amp;amp; " of " &amp;amp; vCountry &amp;amp; " in the amount of " &amp;amp; vTotalAmount &amp;amp; " and has been accepted. The Authorization number is: " &amp;amp; AuthoNum)&lt;BR /&gt;&lt;BR /&gt;'Insert to paymentStatus Table&lt;BR /&gt;DoCmd.RunSQL "INSERT INTO tblPaymentStatus (OrderID,PaymentID,Cleared,Authonum,OrgAmount,OrgTDmm,OrderNumber,CCNumber,CCExpM,CCExpY,OrgTDdd,OrgTDyyyy,CPhone,ORef) Values (" &amp;amp; "'" &amp;amp; vOrderID &amp;amp; "','" &amp;amp; vPaymentID &amp;amp; "','" &amp;amp; Cleared &amp;amp; "','" &amp;amp; AuthoNum &amp;amp; "'," &amp;amp; OrgAmount &amp;amp; ",'" &amp;amp; OrgTDmm &amp;amp; "','" &amp;amp; OrderNumber &amp;amp; "','" &amp;amp; CCNumber &amp;amp; "','" &amp;amp; CCExpM &amp;amp; "','" &amp;amp; CCExpY &amp;amp; "','" &amp;amp; OrgTDdd &amp;amp; "','" &amp;amp; OrgTDyyyy &amp;amp; "','" &amp;amp; CPhone &amp;amp; "','" &amp;amp; vvCSV &amp;amp; "')"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PrintInvoiceYN = MsgBox("Do you want to print the invoice?", vbYesNo)&lt;BR /&gt;PrintLabelYN = MsgBox("Do you want to add this order to the Label Que?", vbYesNo)&lt;BR /&gt;DoCmd.RunSQL "Update tblOrders set CCProcessed = 1 where OrderID=" &amp;amp; vOrderID&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If PrintInvoiceYN = 6 Then&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Dim stDocName As String&lt;BR /&gt;Dim stLinkCriteria As String&lt;BR /&gt;stDocName = "frmAskToPrint"&lt;BR /&gt;stLinkCriteria = "[OrderID]=" &amp;amp; vOrderID&lt;BR /&gt;DoCmd.OpenForm stDocName, , , stLinkCriteria&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;If PrintLabelYN = 6 Then&lt;BR /&gt;&lt;BR /&gt;DoCmd.RunSQL "Update tblOrders set PrintLabel = 1 where OrderID=" &amp;amp; vOrderID&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;'-------------------------------------------BACKORDER&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If vBO = True Then&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Dim cnn3 As ADODB.Connection&lt;BR /&gt;Set cnn3 = CurrentProject.Connection&lt;BR /&gt;Dim rs3 As New ADODB.Recordset&lt;BR /&gt;rs3.ActiveConnection = cnn3&lt;BR /&gt;rs3.CursorType = adOpenDynamic&lt;BR /&gt;rs3.LockType = adLockOptimistic&lt;BR /&gt;SQL3 = "Select grandtotal from tblOrders Where OrderID=" &amp;amp; vOrderID&lt;BR /&gt;rs3.Open SQL3, cnn3&lt;BR /&gt;rs3.MoveFirst&lt;BR /&gt;&lt;BR /&gt;vGrandTotalValue = rs3.Fields("GrandTotal")&lt;BR /&gt;rs3.Close&lt;BR /&gt;cnn3.Close&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;DoCmd.RunSQL "Update tblProductsOrdered set BackOrder = 0, SubTotal=" &amp;amp; vTotalAmount &amp;amp; " where POID = " &amp;amp; vBOProductID &amp;amp; " and OrderID=" &amp;amp; vOrderID&lt;BR /&gt;DoCmd.RunSQL "Update tblBackOrder set CCDone = 1 where BackOrderID=" &amp;amp; vBOID&lt;BR /&gt;DoCmd.RunSQL "Update tblOrders set BackOrder = 0 where OrderID=" &amp;amp; vOrderID&lt;BR /&gt;vGrandTotalValue = vGrandTotalValue + vTotalAmount&lt;BR /&gt;DoCmd.RunSQL "Update tblOrders set GrandTotal = " &amp;amp; vGrandTotalValue &amp;amp; " where OrderID=" &amp;amp; vOrderID&lt;BR /&gt;DoCmd.RunSQL "INSERT INTO tblPaymentStatus (OrderID,PaymentID,Cleared,Authonum,OrgAmount,OrgTDmm,OrderNumber,CCNumber,CCExpM,CCExpY,OrgTDdd,OrgTDyyyy,CPhone,ORef) Values (" &amp;amp; "'" &amp;amp; vOrderID &amp;amp; "','" &amp;amp; vPaymentID &amp;amp; "','" &amp;amp; Cleared &amp;amp; "','" &amp;amp; AuthoNum &amp;amp; "'," &amp;amp; OrgAmount &amp;amp; ",'" &amp;amp; OrgTDmm &amp;amp; "','" &amp;amp; OrderNumber &amp;amp; "','" &amp;amp; CCNumber &amp;amp; "','" &amp;amp; CCExpM &amp;amp; "','" &amp;amp; CCExpY &amp;amp; "','" &amp;amp; OrgTDdd &amp;amp; "','" &amp;amp; OrgTDyyyy &amp;amp; "','" &amp;amp; CPhone &amp;amp; "','" &amp;amp; ORef &amp;amp; "')"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;'--------------------------------------------End BackOrder&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;&lt;BR /&gt;' Declined codes&lt;BR /&gt;&lt;BR /&gt;If EGateway.EchoDeclineCode = "0001" Then&lt;BR /&gt;Reason = "Refer to card issuer."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0002" Then&lt;BR /&gt;Reason = "Refer to card issuer, special condition."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0003" Then&lt;BR /&gt;Reason = "Invalid merchant number."&lt;/P&gt;&lt;P&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0004" Then&lt;BR /&gt;Reason = "Pick-up card. Capture for reward."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0005" Then&lt;BR /&gt;Reason = "Do not honor."&lt;BR /&gt;'5______________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0006" Then&lt;BR /&gt;Reason = "Error."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0007" Then&lt;BR /&gt;Reason = "Pick-up card, special condition."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0008" Then&lt;BR /&gt;Reason = "Honor with identification."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0009" Then&lt;BR /&gt;Reason = "Request in progress."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0010" Then&lt;BR /&gt;Reason = "Approved for partial amount."&lt;BR /&gt;&lt;BR /&gt;'10________________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0011" Then&lt;BR /&gt;Reason = "Approved, VIP."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0012" Then&lt;BR /&gt;Reason = "Invalid transaction."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0013" Then&lt;BR /&gt;Reason = "Invalid amount."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0014" Then&lt;BR /&gt;Reason = "Invalid card #"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0015" Then&lt;BR /&gt;Reason = "No such issuer"&lt;BR /&gt;&lt;BR /&gt;' 15_________________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0016" Then&lt;BR /&gt;Reason = "Approved, update track 3"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0017" Then&lt;BR /&gt;Reason = "Customer cancellation"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0018" Then&lt;BR /&gt;Reason = "Customer dispute"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0019" Then&lt;BR /&gt;Reason = "Re enter transaction"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0020" Then&lt;BR /&gt;Reason = "Invalid response"&lt;BR /&gt;&lt;BR /&gt;'20_________________________________________________________________________________________________________-&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0021" Then&lt;BR /&gt;Reason = "No action taken"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0022" Then&lt;BR /&gt;Reason = "Suspected malfunction"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0023" Then&lt;BR /&gt;Reason = "Unacceptable transaction fee"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0024" Then&lt;BR /&gt;Reason = "File update not supported"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0025" Then&lt;BR /&gt;Reason = "Unable to locate record"&lt;BR /&gt;&lt;BR /&gt;'25__________________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0026" Then&lt;BR /&gt;Reason = " Duplicate record"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0027" Then&lt;BR /&gt;Reason = "File update edit error"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0028" Then&lt;BR /&gt;Reason = "File update file locked"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0029" Then&lt;BR /&gt;Reason = "File update file locked"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0030" Then&lt;BR /&gt;Reason = "Format error, call ECHO"&lt;BR /&gt;&lt;BR /&gt;'30________________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0031" Then&lt;BR /&gt;Reason = " Bank not supported"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0032" Then&lt;BR /&gt;Reason = " Completed partially"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0033" Then&lt;BR /&gt;Reason = " Expired card, pick-up"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0034" Then&lt;BR /&gt;Reason = "Issuer suspects fraud, pick-up card"&lt;/P&gt;&lt;P&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0035" Then&lt;BR /&gt;Reason = "Contact acquirer, pick-up"&lt;BR /&gt;&lt;BR /&gt;'35_______________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0036" Then&lt;BR /&gt;Reason = " Restricted card, pick-up"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0037" Then&lt;BR /&gt;Reason = " Call ECHO security, pick-up"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0038" Then&lt;BR /&gt;Reason = " PIN tries exceeded, pick-up"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0039" Then&lt;BR /&gt;Reason = " No credit account"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0040" Then&lt;BR /&gt;Reason = " Function not supported"&lt;BR /&gt;&lt;BR /&gt;'40________________________________________________________________________________________________________&lt;/P&gt;&lt;P&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0041" Then&lt;BR /&gt;Reason = " Lost Card, capture for reward"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0042" Then&lt;BR /&gt;Reason = " No universal account"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0043" Then&lt;BR /&gt;Reason = "Stolen Card, capture for reward"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0044" Then&lt;BR /&gt;Reason = "No investment account"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0045" Then&lt;BR /&gt;Reason = "not used"&lt;BR /&gt;&lt;BR /&gt;'45______________________________________________________________________________________________________-&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0046" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0047" Then&lt;BR /&gt;Reason = " Remote function unknown"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0048" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0049" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0050" Then&lt;BR /&gt;Reason = "not used"&lt;BR /&gt;&lt;BR /&gt;'50________________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0051" Then&lt;BR /&gt;Reason = " Not sufficient funds"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0052" Then&lt;BR /&gt;Reason = " No check account"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0053" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0054" Then&lt;BR /&gt;Reason = " Expired card"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0055" Then&lt;BR /&gt;Reason = "Incorrect PIN"&lt;BR /&gt;&lt;BR /&gt;'55__________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0056" Then&lt;BR /&gt;Reason = " No card record"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0057" Then&lt;BR /&gt;Reason = " Transaction not permitted to cardholder"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0058" Then&lt;BR /&gt;Reason = " Transaction not permitted on terminal"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0059" Then&lt;BR /&gt;Reason = " Suspected fraud"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0060" Then&lt;BR /&gt;Reason = " Contact ECHO"&lt;BR /&gt;&lt;BR /&gt;'60________________________________________________________________________________________________________-&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0061" Then&lt;BR /&gt;Reason = " Exceeds withdrawal limit"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0062" Then&lt;BR /&gt;Reason = " Restricted card"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0063" Then&lt;BR /&gt;Reason = " Security violation."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0064" Then&lt;BR /&gt;Reason = " Original amount incorrect"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0065" Then&lt;BR /&gt;Reason = " Exceeds withdrawal frequency"&lt;BR /&gt;&lt;BR /&gt;'65________________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0066" Then&lt;BR /&gt;Reason = " Call acquirer security, call ECHO"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0067" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0068" Then&lt;BR /&gt;Reason = " Response received too late"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0069" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0070" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;'70_______________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0071" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0072" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0073" Then&lt;BR /&gt;Reason = " Late reversal"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0074" Then&lt;BR /&gt;Reason = " Reversal does not match original transaction"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0075" Then&lt;BR /&gt;Reason = " PIN tries exceeded"&lt;BR /&gt;&lt;BR /&gt;'75_______________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0076" Then&lt;BR /&gt;Reason = " Invalid to account"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0077" Then&lt;BR /&gt;Reason = " Invalid from account"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0078" Then&lt;BR /&gt;Reason = " Invalid account specified (general)"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0079" Then&lt;BR /&gt;Reason = " Already reversed"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0080" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;'80____________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0081" Then&lt;BR /&gt;Reason = " Cryptographic error found in PIN"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0082" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0083" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0084" Then&lt;BR /&gt;Reason = " Invalid authorization life cycle"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0085" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;'85______________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0086" Then&lt;BR /&gt;Reason = " Cannot verify PIN"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0087" Then&lt;BR /&gt;Reason = " Network Unavailable"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0088" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0089" Then&lt;BR /&gt;Reason = " Ineligible to receive financial position information"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0090" Then&lt;BR /&gt;Reason = " Cut-off in progress"&lt;BR /&gt;&lt;BR /&gt;'90____________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0091" Then&lt;BR /&gt;Reason = " Issuer or switch inoperative"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0092" Then&lt;BR /&gt;Reason = " Routing error"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0093" Then&lt;BR /&gt;Reason = " Violation of law"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0094" Then&lt;BR /&gt;Reason = " Duplicate transaction"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0095" Then&lt;BR /&gt;Reason = " Cut-off in progress"&lt;BR /&gt;&lt;BR /&gt;'95______________________________________________________________________________________________________-&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0096" Then&lt;BR /&gt;Reason = " Violation of law"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0097" Then&lt;BR /&gt;Reason = " Duplicate transaction"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0098" Then&lt;BR /&gt;Reason = " Cut-off in progress"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'Error Codes&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1000" Then&lt;BR /&gt;Reason = " Unrecoverable error."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1001" Then&lt;BR /&gt;Reason = " Account closed"&lt;BR /&gt;&lt;BR /&gt;'100________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1002" Then&lt;BR /&gt;Reason = " System closed"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1003" Then&lt;BR /&gt;Reason = " E-Mail Down"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1004" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1005" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1006" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;'105___________________________________________________________________________________________________-&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1007" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1008" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1009" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1010" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1011" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;'110_______________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1012" Then&lt;BR /&gt;Reason = " Invalid trans code"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1013" Then&lt;BR /&gt;Reason = " Invalid term id"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1014" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1015" Then&lt;BR /&gt;Reason = " Invalid card number"&lt;/P&gt;&lt;P&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1016" Then&lt;BR /&gt;Reason = " Invalid expiry date"&lt;BR /&gt;&lt;BR /&gt;'115__________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1017" Then&lt;BR /&gt;Reason = " Invalid amount"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1018" Then&lt;BR /&gt;Reason = " not used"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1019" Then&lt;BR /&gt;Reason = " Invalid state"&lt;/P&gt;&lt;P&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1020" Then&lt;BR /&gt;Reason = " not used"&lt;/P&gt;&lt;P&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1021" Then&lt;BR /&gt;Reason = " Invalid service"&lt;BR /&gt;&lt;BR /&gt;'120__________________________________________________________________________________________________-&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1022" Then&lt;BR /&gt;Reason = "not used"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1022" Then&lt;BR /&gt;Reason = "not used"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1023" Then&lt;BR /&gt;Reason = "not used"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1024" Then&lt;BR /&gt;Reason = " Invalid auth code"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1025" Then&lt;BR /&gt;Reason = " Invalid reference number"&lt;BR /&gt;&lt;BR /&gt;'125________________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1026" Then&lt;BR /&gt;Reason = " not used"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1027" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1028" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1029" Then&lt;BR /&gt;Reason = " Invalid contract number"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1030" Then&lt;BR /&gt;Reason = " Invalid inventory data"&lt;BR /&gt;&lt;BR /&gt;'130_______________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;'Error Codes 1501 through 1599 are generated by ECHONLINE after&lt;BR /&gt;'validating the merchant but before presenting the transaction to&lt;BR /&gt;'the host computers for processing.&lt;BR /&gt;&lt;BR /&gt;'1501-1507 Not used&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1508" Then&lt;BR /&gt;Reason = " Invalid or missing order_type"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1509" Then&lt;BR /&gt;Reason = " The merchant is not approved to submit this order_type."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1510" Then&lt;BR /&gt;Reason = " The merchant is not approved to submit this transaction_type."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1511" Then&lt;BR /&gt;Reason = " Same CC Number; Same $ Amount; Same Date; DUPLICATE TRANSACTION ATTEMPT!"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1599" Then&lt;BR /&gt;Reason = " An system error occurred while validating the transaction input."&lt;BR /&gt;&lt;BR /&gt;'135______________________________________________________________________________________________--&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;'1600-1800 Not used&lt;/P&gt;&lt;P&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1801" Then&lt;BR /&gt;Reason = " Address matches; ZIP does not match."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1802" Then&lt;BR /&gt;Reason = "9-digit ZIP matches; Address does not match."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1803" Then&lt;BR /&gt;Reason = " 5-digit ZIP matches; Address does not match."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1804" Then&lt;BR /&gt;Reason = " Issuer unavailable; cannot verify."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1805" Then&lt;BR /&gt;Reason = " Retry; system is currently unable to process."&lt;BR /&gt;&lt;BR /&gt;'140________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1806" Then&lt;BR /&gt;Reason = " Issuer does not support AVS."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1807" Then&lt;BR /&gt;Reason = " Nothing matches."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1808" Then&lt;BR /&gt;Reason = " Invalid AVS only response."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1809" Then&lt;BR /&gt;Reason = " Street address match. Postal code not verified because of incompatible formats."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1810" Then&lt;BR /&gt;Reason = " Street address and Postal code not verified because of incompatible formats."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;'145__________________________________________________________________________________________________-&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1811" Then&lt;BR /&gt;Reason = " Street address match and Postal code match."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1812" Then&lt;BR /&gt;Reason = " Address information not verified for international transaction."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1813" Then&lt;BR /&gt;Reason = "Street address match and Postal code match."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1814" Then&lt;BR /&gt;Reason = " Postal code match. Street address not verified because of incompatible formats."&lt;BR /&gt;&lt;BR /&gt;'1815-1896 not is use&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1897" Then&lt;BR /&gt;Reason = " The host returned an invalid response."&lt;BR /&gt;&lt;BR /&gt;'150__________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1898" Then&lt;BR /&gt;Reason = " The host unexpectedly disconnected."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1899" Then&lt;BR /&gt;Reason = " Timeout waiting for host response."&lt;BR /&gt;&lt;BR /&gt;'1900-2070 not in use&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "2071" Then&lt;BR /&gt;Reason = " An authorization number from the VISA Voice Center is required to approve this transaction."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "2072" Then&lt;BR /&gt;Reason = " An authorization number from the Master Card Voice Center is required to approve this transaction."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "2073" Then&lt;BR /&gt;Reason = " An authorization number from the Carte Blanche Voice Center is required to approve this transaction."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;'155____________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "2074" Then&lt;BR /&gt;Reason = " An authorization number from the Diners' Club Voice Center is required to approve this transaction."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "2075" Then&lt;BR /&gt;Reason = " An authorization number from the American Express Voice Center is required to approve this transaction."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "2076" Then&lt;BR /&gt;Reason = " An authorization number from the Discover Voice Center is required to approve this transaction."&lt;BR /&gt;&lt;BR /&gt;'2077 not used&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "2078" Then&lt;BR /&gt;Reason = " The merchant must call ECHO Customer Support for approval.or because there is a problem with the merchant's account."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "2079" Then&lt;BR /&gt;Reason = " The merchant must call ECHO Customer Support for approval.or because there is a problem with the merchant's account."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;'160____________________________________________________________________________________________________________&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;MsgBox ("This is the Declined Code " &amp;amp; EGateway.EchoDeclineCode)&lt;BR /&gt;' set not cleared to true&lt;BR /&gt;NotCleared = "True"&lt;BR /&gt;'get Reason why declined&lt;BR /&gt;'Reason = EGateway.EchoDeclineCode&lt;BR /&gt;MsgBox (" The OrderNumber " &amp;amp; vOrderID &amp;amp; " for " &amp;amp; vFirstName &amp;amp; " " &amp;amp; vLastName &amp;amp; " in the amount of " &amp;amp; vTotalAmount &amp;amp; " and has been declined. The error Code is: " &amp;amp; Reason)&lt;BR /&gt;&lt;BR /&gt;'DoCmd.RunSQL "INSERT INTO tblPaymentStatus(OrderID,PaymentID,NotCleared,Reason) Values (" &amp;amp; "'" &amp;amp; vOrderID &amp;amp; "','" &amp;amp; vPaymentID &amp;amp; "','" &amp;amp; NotCleared &amp;amp; "','" &amp;amp; Reason &amp;amp; "')"&lt;BR /&gt;DoCmd.RunSQL "INSERT INTO tblPaymentStatus(OrderID,PaymentID,NotCleared,ReasonNotCleared) Values (" &amp;amp; "'" &amp;amp; vOrderID &amp;amp; "','" &amp;amp; vPaymentID &amp;amp; "','" &amp;amp; NotCleared &amp;amp; "','" &amp;amp; Reason &amp;amp; "')"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;Set EGateway = Nothing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;' Loop through records&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;rst.MoveNext&lt;BR /&gt;Loop Until rst.EOF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DoCmd.RunSQL "UpDate tblPayments set Processed = 1"&lt;BR /&gt;TransCounter = 0&lt;BR /&gt;'Me.Text0 = 0&lt;BR /&gt;DoCmd.Close acForm, "frmRunCCBatch"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Private Sub Command3_Click()&lt;BR /&gt;On Error GoTo Err_Command3_Click&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;DoCmd.Close&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Exit_Command3_Click:&lt;BR /&gt;Exit Sub&lt;/P&gt;&lt;P&gt;Err_Command3_Click:&lt;BR /&gt;MsgBox Err.description&lt;BR /&gt;Resume Exit_Command3_Click&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;BR /&gt;Private Sub Command4_Click()&lt;BR /&gt;On Error GoTo Err_Command4_Click&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exit_Command4_Click:&lt;BR /&gt;Exit Sub&lt;/P&gt;&lt;P&gt;Err_Command4_Click:&lt;BR /&gt;MsgBox Err.description&lt;BR /&gt;Resume Exit_Command4_Click&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;BR /&gt;Private Sub Command5_Click()&lt;BR /&gt;On Error GoTo Err_Command5_Click&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exit_Command5_Click:&lt;BR /&gt;Exit Sub&lt;/P&gt;&lt;P&gt;Err_Command5_Click:&lt;BR /&gt;MsgBox Err.description&lt;BR /&gt;Resume Exit_Command5_Click&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;Private Sub Form_Load()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;End Sub&lt;BR /&gt;Private Sub Command19_Click()&lt;BR /&gt;On Error GoTo Err_Command19_Click&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DoCmd.GoToRecord , , acFirst&lt;/P&gt;&lt;P&gt;Exit_Command19_Click:&lt;BR /&gt;Exit Sub&lt;/P&gt;&lt;P&gt;Err_Command19_Click:&lt;BR /&gt;MsgBox Err.description&lt;BR /&gt;Resume Exit_Command19_Click&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;BR /&gt;Private Sub Command20_Click()&lt;BR /&gt;On Error GoTo Err_Command20_Click&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DoCmd.GoToRecord , , acPrevious&lt;/P&gt;&lt;P&gt;Exit_Command20_Click:&lt;BR /&gt;Exit Sub&lt;/P&gt;&lt;P&gt;Err_Command20_Click:&lt;BR /&gt;MsgBox Err.description&lt;BR /&gt;Resume Exit_Command20_Click&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;BR /&gt;Private Sub Command21_Click()&lt;BR /&gt;On Error GoTo Err_Command21_Click&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DoCmd.GoToRecord , , acNext&lt;/P&gt;&lt;P&gt;Exit_Command21_Click:&lt;BR /&gt;Exit Sub&lt;/P&gt;&lt;P&gt;Err_Command21_Click:&lt;BR /&gt;MsgBox Err.description&lt;BR /&gt;Resume Exit_Command21_Click&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;BR /&gt;Private Sub Command22_Click()&lt;BR /&gt;On Error GoTo Err_Command22_Click&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DoCmd.GoToRecord , , acLast&lt;/P&gt;&lt;P&gt;Exit_Command22_Click:&lt;BR /&gt;Exit Sub&lt;/P&gt;&lt;P&gt;Err_Command22_Click:&lt;BR /&gt;MsgBox Err.description&lt;BR /&gt;Resume Exit_Command22_Click&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;BR /&gt;Private Sub Command25_Click()&lt;BR /&gt;On Error GoTo Err_Command25_Click&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Exit_Command25_Click:&lt;BR /&gt;Exit Sub&lt;/P&gt;&lt;P&gt;Err_Command25_Click:&lt;BR /&gt;MsgBox Err.description&lt;BR /&gt;Resume Exit_Command25_Click&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;/P&gt;</description>
    <pubDate>Tue, 02 Sep 2014 04:35:53 GMT</pubDate>
    <dc:creator>alwayslearning</dc:creator>
    <dc:date>2014-09-02T04:35:53Z</dc:date>
    <item>
      <title>Intuit code not working...need help with integration</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Intuit-code-not-working-need-help-with-integration/m-p/46763#M23637</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are a small, family operated business that has successfully processed with Echo/Intuit for 18 years.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Intuit bought Echo and then stopped processing for us, so we are now processing with Authorize.net.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when we used Echo, then Intuit, we successfully&amp;nbsp;processed online with&amp;nbsp;a custom built database: Access 2007 using SQL Server 2008 on a Dell Server in our office. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The programmer who put this together is no longer available, so we have to figure this out for ourselves.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for taking a look and any help you can offer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Emily&lt;/P&gt;&lt;P&gt;support@b610.com&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code from SQL2008:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Option Compare Database&lt;/P&gt;&lt;P&gt;Private Sub Command2_Click()&lt;/P&gt;&lt;P&gt;TransCounter = 0&lt;/P&gt;&lt;P&gt;DoCmd.RunCommand acCmdSaveRecord&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;' Set the recordset to current recordset&lt;/P&gt;&lt;P&gt;Dim rst As ADODB.Recordset&lt;BR /&gt;Set rst = Me.Recordset.Clone&lt;BR /&gt;&lt;BR /&gt;rst.MoveFirst&lt;BR /&gt;&lt;BR /&gt;' start a loop to go through payment records&lt;BR /&gt;Do&lt;BR /&gt;&lt;BR /&gt;' Start Instance of Echo&lt;/P&gt;&lt;P&gt;Dim order_submit As Boolean&lt;BR /&gt;Dim EGateway As ECHOCom.Echo&lt;/P&gt;&lt;P&gt;Set EGateway = New ECHOCom.Echo&lt;/P&gt;&lt;P&gt;EGateway.ECHOCom_Initialize&lt;/P&gt;&lt;P&gt;' Enter merchant account information&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EGateway.merchant_echo_id = "*********" 'fill this in&lt;BR /&gt;EGateway.merchant_pin = "******************" 'fill this in&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;EGateway.transaction_type = "EV"&lt;BR /&gt;EGateway.order_type = "S"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;EGateway.ConnectTimeout = 6000&lt;BR /&gt;EGateway.SendTimeOut = 10000&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'Get Fields from Payment Table&lt;BR /&gt;Dim vAddress As String&lt;BR /&gt;Dim vAddress2 As String&lt;BR /&gt;Dim vZip As String&lt;BR /&gt;Dim vCountry As String&lt;BR /&gt;Dim vphone As String&lt;BR /&gt;Dim vCreditcard As String&lt;BR /&gt;Dim vCCyr As String&lt;BR /&gt;Dim vCCM As String&lt;BR /&gt;Dim vOrderID&lt;/P&gt;&lt;P&gt;'On Error Resume Next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;vOrderID = rst.Fields("OrderID")&lt;BR /&gt;vAddress = rst.Fields("BAddress")&lt;BR /&gt;'vAddress2 = rst.Fields("BAddress2")&lt;BR /&gt;vZip = rst.Fields("BZip")&lt;BR /&gt;vphone = rst.Fields("bPhone")&lt;BR /&gt;vCreditcard = rst.Fields("CCNumber")&lt;BR /&gt;vCCyr = rst.Fields("CCExpM")&lt;BR /&gt;vCCM = rst.Fields("CCExpY")&lt;BR /&gt;vOrderID = rst.Fields("OrderID")&lt;BR /&gt;vPaymentID = rst.Fields("PaymentID")&lt;BR /&gt;vFirstName = rst.Fields("FirstName")&lt;BR /&gt;vLastName = rst.Fields("LastName")&lt;BR /&gt;vTotalAmount = rst.Fields("TotalAmount")&lt;BR /&gt;vCountry = rst.Fields("Country")&lt;BR /&gt;vCSV = rst.Fields("EnteredBy")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'BackOrder Fields&lt;BR /&gt;vBO = rst.Fields("BO")&lt;BR /&gt;vBOID = rst.Fields("BackOrderID")&lt;BR /&gt;vBOProductID = rst.Fields("BOProductID")&lt;BR /&gt;countdig = Len(vTotalAmount)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;' Checks the amount and put it in currency format&lt;BR /&gt;' *********************************************************************************&lt;BR /&gt;&lt;BR /&gt;If countdig &amp;lt;= 3 Then&lt;BR /&gt;vTotalAmount = vTotalAmount &amp;amp; ".00"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Else&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dim HMN&lt;BR /&gt;Dim words() As String&lt;BR /&gt;words() = Split(vTotalAmount, ".")&lt;BR /&gt;HMN = Len(words(1))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;If HMN = "" Then&lt;BR /&gt;vTotalAmount = vTotalAmount &amp;amp; ".00"&lt;BR /&gt;Else&lt;BR /&gt;&lt;BR /&gt;If HMN = 1 Then&lt;BR /&gt;vTotalAmount = vTotalAmount &amp;amp; "0"&lt;BR /&gt;Else&lt;BR /&gt;&lt;BR /&gt;If HMN &amp;gt; 1 Then&lt;BR /&gt;PercentValue = Right(words(1), 2)&lt;BR /&gt;vTotalAmount = words(0) &amp;amp; "." &amp;amp; PercentValue&lt;BR /&gt;Else&lt;BR /&gt;&lt;BR /&gt;vTotalAmount = vTotalAmount&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;'*******************************************************************************&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;On Error Resume Next&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'Enables counter&lt;BR /&gt;TransCounter = TransCounter + 1&lt;BR /&gt;EGateway.Counter = TransCounter&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;' Assign payment details to the echo varibles&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;EGateway.billing_address1 = vAddress&lt;BR /&gt;EGateway.billing_address2 = vAddress2&lt;BR /&gt;EGateway.billing_zip = vZip&lt;BR /&gt;EGateway.billing_phone = vphone&lt;BR /&gt;EGateway.cc_number = vCreditcard&lt;BR /&gt;EGateway.ccexp_month = vCCyr&lt;BR /&gt;EGateway.ccexp_year = vCCM&lt;BR /&gt;EGateway.cnp_security = vCSV&lt;BR /&gt;EGateway.DebugEcho = "F"&lt;BR /&gt;EGateway.EchoServer = "&lt;A href="https://secure.authorize.net/gateway/transact.dll&amp;quot;" target="_blank"&gt;https://secure.authorize.net/gateway/transact.dll"&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Get The Total Of The order&lt;/P&gt;&lt;P&gt;EGateway.grand_total = vTotalAmount&lt;BR /&gt;EGateway.merchant_email = "support@b610.com"&lt;BR /&gt;EGateway.product_description = "Sale"&lt;/P&gt;&lt;P&gt;order_submit = EGateway.Submit&lt;/P&gt;&lt;P&gt;If order_submit = True Then&lt;/P&gt;&lt;P&gt;vdate1 = Date&lt;BR /&gt;a = Split(vdate1, "/")&lt;BR /&gt;vMonth = a(0)&lt;BR /&gt;vDay = a(1)&lt;BR /&gt;vYear = a(2)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;OrgAmount = vTotalAmount&lt;BR /&gt;OrgTDmm = vMonth&lt;BR /&gt;OrgTDdd = vDay&lt;BR /&gt;OrgTDyyyy = vYear&lt;BR /&gt;OrderNumber = EGateway.order_number&lt;BR /&gt;CCNumber = EGateway.cc_number&lt;BR /&gt;CCExpM = EGateway.ccexp_month&lt;BR /&gt;CCExpY = EGateway.ccexp_year&lt;BR /&gt;CPhone = vphone&lt;BR /&gt;ORef = EGateway.original_reference&lt;BR /&gt;vvCSV = EGateway.cnp_security&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'If payment was accepted&lt;BR /&gt;'set cleared to true&lt;BR /&gt;&lt;BR /&gt;Cleared = "True"&lt;BR /&gt;' Get auto number&lt;BR /&gt;AuthoNum = EGateway.authorization&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;' Display Auto info&lt;BR /&gt;&lt;BR /&gt;MsgBox (" The OrderNumber " &amp;amp; vOrderID &amp;amp; " for " &amp;amp; vFirstName &amp;amp; " " &amp;amp; vLastName &amp;amp; " of " &amp;amp; vCountry &amp;amp; " in the amount of " &amp;amp; vTotalAmount &amp;amp; " and has been accepted. The Authorization number is: " &amp;amp; AuthoNum)&lt;BR /&gt;&lt;BR /&gt;'Insert to paymentStatus Table&lt;BR /&gt;DoCmd.RunSQL "INSERT INTO tblPaymentStatus (OrderID,PaymentID,Cleared,Authonum,OrgAmount,OrgTDmm,OrderNumber,CCNumber,CCExpM,CCExpY,OrgTDdd,OrgTDyyyy,CPhone,ORef) Values (" &amp;amp; "'" &amp;amp; vOrderID &amp;amp; "','" &amp;amp; vPaymentID &amp;amp; "','" &amp;amp; Cleared &amp;amp; "','" &amp;amp; AuthoNum &amp;amp; "'," &amp;amp; OrgAmount &amp;amp; ",'" &amp;amp; OrgTDmm &amp;amp; "','" &amp;amp; OrderNumber &amp;amp; "','" &amp;amp; CCNumber &amp;amp; "','" &amp;amp; CCExpM &amp;amp; "','" &amp;amp; CCExpY &amp;amp; "','" &amp;amp; OrgTDdd &amp;amp; "','" &amp;amp; OrgTDyyyy &amp;amp; "','" &amp;amp; CPhone &amp;amp; "','" &amp;amp; vvCSV &amp;amp; "')"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PrintInvoiceYN = MsgBox("Do you want to print the invoice?", vbYesNo)&lt;BR /&gt;PrintLabelYN = MsgBox("Do you want to add this order to the Label Que?", vbYesNo)&lt;BR /&gt;DoCmd.RunSQL "Update tblOrders set CCProcessed = 1 where OrderID=" &amp;amp; vOrderID&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If PrintInvoiceYN = 6 Then&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Dim stDocName As String&lt;BR /&gt;Dim stLinkCriteria As String&lt;BR /&gt;stDocName = "frmAskToPrint"&lt;BR /&gt;stLinkCriteria = "[OrderID]=" &amp;amp; vOrderID&lt;BR /&gt;DoCmd.OpenForm stDocName, , , stLinkCriteria&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;If PrintLabelYN = 6 Then&lt;BR /&gt;&lt;BR /&gt;DoCmd.RunSQL "Update tblOrders set PrintLabel = 1 where OrderID=" &amp;amp; vOrderID&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;'-------------------------------------------BACKORDER&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If vBO = True Then&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Dim cnn3 As ADODB.Connection&lt;BR /&gt;Set cnn3 = CurrentProject.Connection&lt;BR /&gt;Dim rs3 As New ADODB.Recordset&lt;BR /&gt;rs3.ActiveConnection = cnn3&lt;BR /&gt;rs3.CursorType = adOpenDynamic&lt;BR /&gt;rs3.LockType = adLockOptimistic&lt;BR /&gt;SQL3 = "Select grandtotal from tblOrders Where OrderID=" &amp;amp; vOrderID&lt;BR /&gt;rs3.Open SQL3, cnn3&lt;BR /&gt;rs3.MoveFirst&lt;BR /&gt;&lt;BR /&gt;vGrandTotalValue = rs3.Fields("GrandTotal")&lt;BR /&gt;rs3.Close&lt;BR /&gt;cnn3.Close&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;DoCmd.RunSQL "Update tblProductsOrdered set BackOrder = 0, SubTotal=" &amp;amp; vTotalAmount &amp;amp; " where POID = " &amp;amp; vBOProductID &amp;amp; " and OrderID=" &amp;amp; vOrderID&lt;BR /&gt;DoCmd.RunSQL "Update tblBackOrder set CCDone = 1 where BackOrderID=" &amp;amp; vBOID&lt;BR /&gt;DoCmd.RunSQL "Update tblOrders set BackOrder = 0 where OrderID=" &amp;amp; vOrderID&lt;BR /&gt;vGrandTotalValue = vGrandTotalValue + vTotalAmount&lt;BR /&gt;DoCmd.RunSQL "Update tblOrders set GrandTotal = " &amp;amp; vGrandTotalValue &amp;amp; " where OrderID=" &amp;amp; vOrderID&lt;BR /&gt;DoCmd.RunSQL "INSERT INTO tblPaymentStatus (OrderID,PaymentID,Cleared,Authonum,OrgAmount,OrgTDmm,OrderNumber,CCNumber,CCExpM,CCExpY,OrgTDdd,OrgTDyyyy,CPhone,ORef) Values (" &amp;amp; "'" &amp;amp; vOrderID &amp;amp; "','" &amp;amp; vPaymentID &amp;amp; "','" &amp;amp; Cleared &amp;amp; "','" &amp;amp; AuthoNum &amp;amp; "'," &amp;amp; OrgAmount &amp;amp; ",'" &amp;amp; OrgTDmm &amp;amp; "','" &amp;amp; OrderNumber &amp;amp; "','" &amp;amp; CCNumber &amp;amp; "','" &amp;amp; CCExpM &amp;amp; "','" &amp;amp; CCExpY &amp;amp; "','" &amp;amp; OrgTDdd &amp;amp; "','" &amp;amp; OrgTDyyyy &amp;amp; "','" &amp;amp; CPhone &amp;amp; "','" &amp;amp; ORef &amp;amp; "')"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;'--------------------------------------------End BackOrder&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;&lt;BR /&gt;' Declined codes&lt;BR /&gt;&lt;BR /&gt;If EGateway.EchoDeclineCode = "0001" Then&lt;BR /&gt;Reason = "Refer to card issuer."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0002" Then&lt;BR /&gt;Reason = "Refer to card issuer, special condition."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0003" Then&lt;BR /&gt;Reason = "Invalid merchant number."&lt;/P&gt;&lt;P&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0004" Then&lt;BR /&gt;Reason = "Pick-up card. Capture for reward."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0005" Then&lt;BR /&gt;Reason = "Do not honor."&lt;BR /&gt;'5______________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0006" Then&lt;BR /&gt;Reason = "Error."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0007" Then&lt;BR /&gt;Reason = "Pick-up card, special condition."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0008" Then&lt;BR /&gt;Reason = "Honor with identification."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0009" Then&lt;BR /&gt;Reason = "Request in progress."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0010" Then&lt;BR /&gt;Reason = "Approved for partial amount."&lt;BR /&gt;&lt;BR /&gt;'10________________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0011" Then&lt;BR /&gt;Reason = "Approved, VIP."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0012" Then&lt;BR /&gt;Reason = "Invalid transaction."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0013" Then&lt;BR /&gt;Reason = "Invalid amount."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0014" Then&lt;BR /&gt;Reason = "Invalid card #"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0015" Then&lt;BR /&gt;Reason = "No such issuer"&lt;BR /&gt;&lt;BR /&gt;' 15_________________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0016" Then&lt;BR /&gt;Reason = "Approved, update track 3"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0017" Then&lt;BR /&gt;Reason = "Customer cancellation"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0018" Then&lt;BR /&gt;Reason = "Customer dispute"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0019" Then&lt;BR /&gt;Reason = "Re enter transaction"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0020" Then&lt;BR /&gt;Reason = "Invalid response"&lt;BR /&gt;&lt;BR /&gt;'20_________________________________________________________________________________________________________-&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0021" Then&lt;BR /&gt;Reason = "No action taken"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0022" Then&lt;BR /&gt;Reason = "Suspected malfunction"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0023" Then&lt;BR /&gt;Reason = "Unacceptable transaction fee"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0024" Then&lt;BR /&gt;Reason = "File update not supported"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0025" Then&lt;BR /&gt;Reason = "Unable to locate record"&lt;BR /&gt;&lt;BR /&gt;'25__________________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0026" Then&lt;BR /&gt;Reason = " Duplicate record"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0027" Then&lt;BR /&gt;Reason = "File update edit error"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0028" Then&lt;BR /&gt;Reason = "File update file locked"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0029" Then&lt;BR /&gt;Reason = "File update file locked"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0030" Then&lt;BR /&gt;Reason = "Format error, call ECHO"&lt;BR /&gt;&lt;BR /&gt;'30________________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0031" Then&lt;BR /&gt;Reason = " Bank not supported"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0032" Then&lt;BR /&gt;Reason = " Completed partially"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0033" Then&lt;BR /&gt;Reason = " Expired card, pick-up"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0034" Then&lt;BR /&gt;Reason = "Issuer suspects fraud, pick-up card"&lt;/P&gt;&lt;P&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0035" Then&lt;BR /&gt;Reason = "Contact acquirer, pick-up"&lt;BR /&gt;&lt;BR /&gt;'35_______________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0036" Then&lt;BR /&gt;Reason = " Restricted card, pick-up"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0037" Then&lt;BR /&gt;Reason = " Call ECHO security, pick-up"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0038" Then&lt;BR /&gt;Reason = " PIN tries exceeded, pick-up"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0039" Then&lt;BR /&gt;Reason = " No credit account"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0040" Then&lt;BR /&gt;Reason = " Function not supported"&lt;BR /&gt;&lt;BR /&gt;'40________________________________________________________________________________________________________&lt;/P&gt;&lt;P&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0041" Then&lt;BR /&gt;Reason = " Lost Card, capture for reward"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0042" Then&lt;BR /&gt;Reason = " No universal account"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0043" Then&lt;BR /&gt;Reason = "Stolen Card, capture for reward"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0044" Then&lt;BR /&gt;Reason = "No investment account"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0045" Then&lt;BR /&gt;Reason = "not used"&lt;BR /&gt;&lt;BR /&gt;'45______________________________________________________________________________________________________-&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0046" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0047" Then&lt;BR /&gt;Reason = " Remote function unknown"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0048" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0049" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0050" Then&lt;BR /&gt;Reason = "not used"&lt;BR /&gt;&lt;BR /&gt;'50________________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0051" Then&lt;BR /&gt;Reason = " Not sufficient funds"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0052" Then&lt;BR /&gt;Reason = " No check account"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0053" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0054" Then&lt;BR /&gt;Reason = " Expired card"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0055" Then&lt;BR /&gt;Reason = "Incorrect PIN"&lt;BR /&gt;&lt;BR /&gt;'55__________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0056" Then&lt;BR /&gt;Reason = " No card record"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0057" Then&lt;BR /&gt;Reason = " Transaction not permitted to cardholder"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0058" Then&lt;BR /&gt;Reason = " Transaction not permitted on terminal"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0059" Then&lt;BR /&gt;Reason = " Suspected fraud"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0060" Then&lt;BR /&gt;Reason = " Contact ECHO"&lt;BR /&gt;&lt;BR /&gt;'60________________________________________________________________________________________________________-&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0061" Then&lt;BR /&gt;Reason = " Exceeds withdrawal limit"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0062" Then&lt;BR /&gt;Reason = " Restricted card"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0063" Then&lt;BR /&gt;Reason = " Security violation."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0064" Then&lt;BR /&gt;Reason = " Original amount incorrect"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0065" Then&lt;BR /&gt;Reason = " Exceeds withdrawal frequency"&lt;BR /&gt;&lt;BR /&gt;'65________________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0066" Then&lt;BR /&gt;Reason = " Call acquirer security, call ECHO"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0067" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0068" Then&lt;BR /&gt;Reason = " Response received too late"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0069" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0070" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;'70_______________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0071" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0072" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0073" Then&lt;BR /&gt;Reason = " Late reversal"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0074" Then&lt;BR /&gt;Reason = " Reversal does not match original transaction"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0075" Then&lt;BR /&gt;Reason = " PIN tries exceeded"&lt;BR /&gt;&lt;BR /&gt;'75_______________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0076" Then&lt;BR /&gt;Reason = " Invalid to account"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0077" Then&lt;BR /&gt;Reason = " Invalid from account"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0078" Then&lt;BR /&gt;Reason = " Invalid account specified (general)"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0079" Then&lt;BR /&gt;Reason = " Already reversed"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0080" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;'80____________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0081" Then&lt;BR /&gt;Reason = " Cryptographic error found in PIN"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0082" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0083" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0084" Then&lt;BR /&gt;Reason = " Invalid authorization life cycle"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0085" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;'85______________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0086" Then&lt;BR /&gt;Reason = " Cannot verify PIN"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0087" Then&lt;BR /&gt;Reason = " Network Unavailable"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0088" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0089" Then&lt;BR /&gt;Reason = " Ineligible to receive financial position information"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0090" Then&lt;BR /&gt;Reason = " Cut-off in progress"&lt;BR /&gt;&lt;BR /&gt;'90____________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0091" Then&lt;BR /&gt;Reason = " Issuer or switch inoperative"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0092" Then&lt;BR /&gt;Reason = " Routing error"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0093" Then&lt;BR /&gt;Reason = " Violation of law"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0094" Then&lt;BR /&gt;Reason = " Duplicate transaction"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0095" Then&lt;BR /&gt;Reason = " Cut-off in progress"&lt;BR /&gt;&lt;BR /&gt;'95______________________________________________________________________________________________________-&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0096" Then&lt;BR /&gt;Reason = " Violation of law"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0097" Then&lt;BR /&gt;Reason = " Duplicate transaction"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "0098" Then&lt;BR /&gt;Reason = " Cut-off in progress"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'Error Codes&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1000" Then&lt;BR /&gt;Reason = " Unrecoverable error."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1001" Then&lt;BR /&gt;Reason = " Account closed"&lt;BR /&gt;&lt;BR /&gt;'100________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1002" Then&lt;BR /&gt;Reason = " System closed"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1003" Then&lt;BR /&gt;Reason = " E-Mail Down"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1004" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1005" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1006" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;'105___________________________________________________________________________________________________-&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1007" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1008" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1009" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1010" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1011" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;'110_______________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1012" Then&lt;BR /&gt;Reason = " Invalid trans code"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1013" Then&lt;BR /&gt;Reason = " Invalid term id"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1014" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1015" Then&lt;BR /&gt;Reason = " Invalid card number"&lt;/P&gt;&lt;P&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1016" Then&lt;BR /&gt;Reason = " Invalid expiry date"&lt;BR /&gt;&lt;BR /&gt;'115__________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1017" Then&lt;BR /&gt;Reason = " Invalid amount"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1018" Then&lt;BR /&gt;Reason = " not used"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1019" Then&lt;BR /&gt;Reason = " Invalid state"&lt;/P&gt;&lt;P&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1020" Then&lt;BR /&gt;Reason = " not used"&lt;/P&gt;&lt;P&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1021" Then&lt;BR /&gt;Reason = " Invalid service"&lt;BR /&gt;&lt;BR /&gt;'120__________________________________________________________________________________________________-&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1022" Then&lt;BR /&gt;Reason = "not used"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1022" Then&lt;BR /&gt;Reason = "not used"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1023" Then&lt;BR /&gt;Reason = "not used"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1024" Then&lt;BR /&gt;Reason = " Invalid auth code"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1025" Then&lt;BR /&gt;Reason = " Invalid reference number"&lt;BR /&gt;&lt;BR /&gt;'125________________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1026" Then&lt;BR /&gt;Reason = " not used"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1027" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1028" Then&lt;BR /&gt;Reason = " not used"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1029" Then&lt;BR /&gt;Reason = " Invalid contract number"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1030" Then&lt;BR /&gt;Reason = " Invalid inventory data"&lt;BR /&gt;&lt;BR /&gt;'130_______________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;'Error Codes 1501 through 1599 are generated by ECHONLINE after&lt;BR /&gt;'validating the merchant but before presenting the transaction to&lt;BR /&gt;'the host computers for processing.&lt;BR /&gt;&lt;BR /&gt;'1501-1507 Not used&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1508" Then&lt;BR /&gt;Reason = " Invalid or missing order_type"&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1509" Then&lt;BR /&gt;Reason = " The merchant is not approved to submit this order_type."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1510" Then&lt;BR /&gt;Reason = " The merchant is not approved to submit this transaction_type."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1511" Then&lt;BR /&gt;Reason = " Same CC Number; Same $ Amount; Same Date; DUPLICATE TRANSACTION ATTEMPT!"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1599" Then&lt;BR /&gt;Reason = " An system error occurred while validating the transaction input."&lt;BR /&gt;&lt;BR /&gt;'135______________________________________________________________________________________________--&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;'1600-1800 Not used&lt;/P&gt;&lt;P&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1801" Then&lt;BR /&gt;Reason = " Address matches; ZIP does not match."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1802" Then&lt;BR /&gt;Reason = "9-digit ZIP matches; Address does not match."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1803" Then&lt;BR /&gt;Reason = " 5-digit ZIP matches; Address does not match."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1804" Then&lt;BR /&gt;Reason = " Issuer unavailable; cannot verify."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1805" Then&lt;BR /&gt;Reason = " Retry; system is currently unable to process."&lt;BR /&gt;&lt;BR /&gt;'140________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1806" Then&lt;BR /&gt;Reason = " Issuer does not support AVS."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1807" Then&lt;BR /&gt;Reason = " Nothing matches."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1808" Then&lt;BR /&gt;Reason = " Invalid AVS only response."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1809" Then&lt;BR /&gt;Reason = " Street address match. Postal code not verified because of incompatible formats."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1810" Then&lt;BR /&gt;Reason = " Street address and Postal code not verified because of incompatible formats."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;'145__________________________________________________________________________________________________-&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1811" Then&lt;BR /&gt;Reason = " Street address match and Postal code match."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1812" Then&lt;BR /&gt;Reason = " Address information not verified for international transaction."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1813" Then&lt;BR /&gt;Reason = "Street address match and Postal code match."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1814" Then&lt;BR /&gt;Reason = " Postal code match. Street address not verified because of incompatible formats."&lt;BR /&gt;&lt;BR /&gt;'1815-1896 not is use&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1897" Then&lt;BR /&gt;Reason = " The host returned an invalid response."&lt;BR /&gt;&lt;BR /&gt;'150__________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1898" Then&lt;BR /&gt;Reason = " The host unexpectedly disconnected."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "1899" Then&lt;BR /&gt;Reason = " Timeout waiting for host response."&lt;BR /&gt;&lt;BR /&gt;'1900-2070 not in use&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "2071" Then&lt;BR /&gt;Reason = " An authorization number from the VISA Voice Center is required to approve this transaction."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "2072" Then&lt;BR /&gt;Reason = " An authorization number from the Master Card Voice Center is required to approve this transaction."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "2073" Then&lt;BR /&gt;Reason = " An authorization number from the Carte Blanche Voice Center is required to approve this transaction."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;'155____________________________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "2074" Then&lt;BR /&gt;Reason = " An authorization number from the Diners' Club Voice Center is required to approve this transaction."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "2075" Then&lt;BR /&gt;Reason = " An authorization number from the American Express Voice Center is required to approve this transaction."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "2076" Then&lt;BR /&gt;Reason = " An authorization number from the Discover Voice Center is required to approve this transaction."&lt;BR /&gt;&lt;BR /&gt;'2077 not used&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "2078" Then&lt;BR /&gt;Reason = " The merchant must call ECHO Customer Support for approval.or because there is a problem with the merchant's account."&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;If EGateway.EchoDeclineCode = "2079" Then&lt;BR /&gt;Reason = " The merchant must call ECHO Customer Support for approval.or because there is a problem with the merchant's account."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;'160____________________________________________________________________________________________________________&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;MsgBox ("This is the Declined Code " &amp;amp; EGateway.EchoDeclineCode)&lt;BR /&gt;' set not cleared to true&lt;BR /&gt;NotCleared = "True"&lt;BR /&gt;'get Reason why declined&lt;BR /&gt;'Reason = EGateway.EchoDeclineCode&lt;BR /&gt;MsgBox (" The OrderNumber " &amp;amp; vOrderID &amp;amp; " for " &amp;amp; vFirstName &amp;amp; " " &amp;amp; vLastName &amp;amp; " in the amount of " &amp;amp; vTotalAmount &amp;amp; " and has been declined. The error Code is: " &amp;amp; Reason)&lt;BR /&gt;&lt;BR /&gt;'DoCmd.RunSQL "INSERT INTO tblPaymentStatus(OrderID,PaymentID,NotCleared,Reason) Values (" &amp;amp; "'" &amp;amp; vOrderID &amp;amp; "','" &amp;amp; vPaymentID &amp;amp; "','" &amp;amp; NotCleared &amp;amp; "','" &amp;amp; Reason &amp;amp; "')"&lt;BR /&gt;DoCmd.RunSQL "INSERT INTO tblPaymentStatus(OrderID,PaymentID,NotCleared,ReasonNotCleared) Values (" &amp;amp; "'" &amp;amp; vOrderID &amp;amp; "','" &amp;amp; vPaymentID &amp;amp; "','" &amp;amp; NotCleared &amp;amp; "','" &amp;amp; Reason &amp;amp; "')"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;Set EGateway = Nothing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;' Loop through records&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;rst.MoveNext&lt;BR /&gt;Loop Until rst.EOF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DoCmd.RunSQL "UpDate tblPayments set Processed = 1"&lt;BR /&gt;TransCounter = 0&lt;BR /&gt;'Me.Text0 = 0&lt;BR /&gt;DoCmd.Close acForm, "frmRunCCBatch"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Private Sub Command3_Click()&lt;BR /&gt;On Error GoTo Err_Command3_Click&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;DoCmd.Close&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Exit_Command3_Click:&lt;BR /&gt;Exit Sub&lt;/P&gt;&lt;P&gt;Err_Command3_Click:&lt;BR /&gt;MsgBox Err.description&lt;BR /&gt;Resume Exit_Command3_Click&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;BR /&gt;Private Sub Command4_Click()&lt;BR /&gt;On Error GoTo Err_Command4_Click&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exit_Command4_Click:&lt;BR /&gt;Exit Sub&lt;/P&gt;&lt;P&gt;Err_Command4_Click:&lt;BR /&gt;MsgBox Err.description&lt;BR /&gt;Resume Exit_Command4_Click&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;BR /&gt;Private Sub Command5_Click()&lt;BR /&gt;On Error GoTo Err_Command5_Click&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exit_Command5_Click:&lt;BR /&gt;Exit Sub&lt;/P&gt;&lt;P&gt;Err_Command5_Click:&lt;BR /&gt;MsgBox Err.description&lt;BR /&gt;Resume Exit_Command5_Click&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;Private Sub Form_Load()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;End Sub&lt;BR /&gt;Private Sub Command19_Click()&lt;BR /&gt;On Error GoTo Err_Command19_Click&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DoCmd.GoToRecord , , acFirst&lt;/P&gt;&lt;P&gt;Exit_Command19_Click:&lt;BR /&gt;Exit Sub&lt;/P&gt;&lt;P&gt;Err_Command19_Click:&lt;BR /&gt;MsgBox Err.description&lt;BR /&gt;Resume Exit_Command19_Click&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;BR /&gt;Private Sub Command20_Click()&lt;BR /&gt;On Error GoTo Err_Command20_Click&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DoCmd.GoToRecord , , acPrevious&lt;/P&gt;&lt;P&gt;Exit_Command20_Click:&lt;BR /&gt;Exit Sub&lt;/P&gt;&lt;P&gt;Err_Command20_Click:&lt;BR /&gt;MsgBox Err.description&lt;BR /&gt;Resume Exit_Command20_Click&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;BR /&gt;Private Sub Command21_Click()&lt;BR /&gt;On Error GoTo Err_Command21_Click&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DoCmd.GoToRecord , , acNext&lt;/P&gt;&lt;P&gt;Exit_Command21_Click:&lt;BR /&gt;Exit Sub&lt;/P&gt;&lt;P&gt;Err_Command21_Click:&lt;BR /&gt;MsgBox Err.description&lt;BR /&gt;Resume Exit_Command21_Click&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;BR /&gt;Private Sub Command22_Click()&lt;BR /&gt;On Error GoTo Err_Command22_Click&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DoCmd.GoToRecord , , acLast&lt;/P&gt;&lt;P&gt;Exit_Command22_Click:&lt;BR /&gt;Exit Sub&lt;/P&gt;&lt;P&gt;Err_Command22_Click:&lt;BR /&gt;MsgBox Err.description&lt;BR /&gt;Resume Exit_Command22_Click&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;BR /&gt;Private Sub Command25_Click()&lt;BR /&gt;On Error GoTo Err_Command25_Click&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Exit_Command25_Click:&lt;BR /&gt;Exit Sub&lt;/P&gt;&lt;P&gt;Err_Command25_Click:&lt;BR /&gt;MsgBox Err.description&lt;BR /&gt;Resume Exit_Command25_Click&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;/P&gt;</description>
      <pubDate>Tue, 02 Sep 2014 04:35:53 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Intuit-code-not-working-need-help-with-integration/m-p/46763#M23637</guid>
      <dc:creator>alwayslearning</dc:creator>
      <dc:date>2014-09-02T04:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Intuit code not working...need help with integration</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Intuit-code-not-working-need-help-with-integration/m-p/46773#M23641</link>
      <description>&lt;P&gt;The look more like vb then sql2008? did you figure out which api to use? look like you might be using AIM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There VB.net sample code here.&lt;/P&gt;&lt;P&gt;&lt;A href="http://developer.authorize.net/downloads/samplecode/" target="_blank"&gt;http://developer.authorize.net/downloads/samplecode/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also hire certified developer&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.authorize.net/solutions/merchantsolutions/merchantservices/certifieddeveloperdirectory/" target="_blank"&gt;http://www.authorize.net/solutions/merchantsolutions/merchantservices/certifieddeveloperdirectory/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Sep 2014 11:23:49 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Intuit-code-not-working-need-help-with-integration/m-p/46773#M23641</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-09-02T11:23:49Z</dc:date>
    </item>
  </channel>
</rss>

