<?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 Re: C# - Data differences between GetTransactionList() and GetTransactionDetails() in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-Data-differences-between-GetTransactionList-and/m-p/44666#M22634</link>
    <description>&lt;PRE&gt;   //If Transaction Found, Display all Transaction details
            if (sTransactionID != "")
            {
                //Display DIV with details
                Transaction tran = gate.GetTransactionDetails(sTransactionID);

                lblOrderNumber.Text = IsNull(tran.InvoiceNumber);
                lblDateSubmitted.Text = IsNull(tran.DateSubmitted);

                lblFirstName.Text = IsNull(tran.FirstName);
                lblLastName.Text = IsNull(tran.LastName);&lt;/PRE&gt;&lt;P&gt;tran have a "bill to", first name and last name is in them. You can either see it in the WSDL or read the doc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or you can see it in the source, those 2 fields only fill in if it is from the transaction summary.&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://github.com/AuthorizeNet/sdk-dotnet/blob/master/Authorize.NET/Reporting/Transaction.cs"&gt;https://github.com/AuthorizeNet/sdk-dotnet/blob/master/Authorize.NET/Reporting/Transaction.cs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jun 2014 16:37:03 GMT</pubDate>
    <dc:creator>RaynorC1emen7</dc:creator>
    <dc:date>2014-06-18T16:37:03Z</dc:date>
    <item>
      <title>C# - Data differences between GetTransactionList() and GetTransactionDetails()</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-Data-differences-between-GetTransactionList-and/m-p/44636#M22619</link>
      <description>&lt;P&gt;So when I do a lookup using GetTransactionList(), I get a list of all the transactions for the last 30 days including First and Last Name with each transaction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I then lookup a specific transaction using GetTransactionDetails() and give it a specific transaction to look up, what is returned does not include the customer's first and last name. &amp;nbsp;All I get are null values for first and last name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why is there a difference between these two methods on what data is returned?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advanced!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Pedro Coelho&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2014 01:15:36 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-Data-differences-between-GetTransactionList-and/m-p/44636#M22619</guid>
      <dc:creator>pedrocoelho1</dc:creator>
      <dc:date>2014-06-18T01:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: C# - Data differences between GetTransactionList() and GetTransactionDetails()</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-Data-differences-between-GetTransactionList-and/m-p/44640#M22621</link>
      <description>&lt;P&gt;&lt;A href="https://api.authorize.net/soap/v1/Service.asmx?WSDL" target="_blank"&gt;https://api.authorize.net/soap/v1/Service.asmx?WSDL&lt;/A&gt;&lt;/P&gt;&lt;P&gt;are you looking at the right location? on the getTransactionList is on the summary list, while getTransactionDetails is in the bill to&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2014 01:32:52 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-Data-differences-between-GetTransactionList-and/m-p/44640#M22621</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-06-18T01:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: C# - Data differences between GetTransactionList() and GetTransactionDetails()</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-Data-differences-between-GetTransactionList-and/m-p/44664#M22633</link>
      <description>&lt;P&gt;I don't understand what you're asking whether I'm looking in the right location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the Authorize.Net dll, not the webservice. &amp;nbsp;I tried modifyiing my code to use the webservice, but I wasnt having any luck with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is below.... its a little weird how I'm doing it. &amp;nbsp;When I can GetTransactionList, I iterate through the list of transactions, add them to a datatable then bind that datatable to a gridview. &amp;nbsp;I did this for testing purposes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm searching for a transaction based on a particular Invoice#, hence all the looping. &amp;nbsp;I hope you understand my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The point it, that when I run this I get a FirstName from GetTransactionList, but when I specifically look for a transaction using GetTransactionDetails, the FirstName is blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appeciated. &amp;nbsp;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;        protected void cmdGetData_Click(object sender, EventArgs e)
        {
            string sOrderNumber = txtOrderNumber.Text.ToString();
            string sTransactionID = "";

            var login = ConfigurationManager.AppSettings["AuthorizeNetApiLogin"];
            var transactionKey = ConfigurationManager.AppSettings["AuthorizeNetTransactionKey"];

            var gate = new ReportingGateway(login, transactionKey, ServiceMode.Test);

            //Date Range cannot exceed 31 days
            var transactions = gate.GetTransactionList();

            

            DataColumn dcInvoiceNumber = new DataColumn("InvoiceNumber");
            DataColumn dcTransactionNumber = new DataColumn("TransactionNumber");
            DataColumn dcFirstName = new DataColumn("FirstName");
            DataColumn dcLastName = new DataColumn("LastName");
            DataColumn dcAmount = new DataColumn("Amount");
            DataColumn dcDateSubmitted = new DataColumn("DateSubmitted");
            DataColumn dcCount = new DataColumn("Count");

            dcInvoiceNumber.DataType = System.Type.GetType("System.String");
            dcTransactionNumber.DataType = System.Type.GetType("System.String");
            dcFirstName.DataType = System.Type.GetType("System.String");
            dcLastName.DataType = System.Type.GetType("System.String");
            dcAmount.DataType = System.Type.GetType("System.String");
            dcDateSubmitted.DataType = System.Type.GetType("System.String");
            dcCount.DataType = System.Type.GetType("System.String");

            DataTable data = new DataTable();
            data.Columns.Add(dcInvoiceNumber);
            data.Columns.Add(dcTransactionNumber);
            data.Columns.Add(dcFirstName);
            data.Columns.Add(dcLastName);
            data.Columns.Add(dcAmount);
            data.Columns.Add(dcDateSubmitted);
            data.Columns.Add(dcCount);

            int i = 1;

            foreach (var item in transactions)
            {
                DataRow row = data.NewRow();
                row[dcInvoiceNumber] = IsNull(item.InvoiceNumber);
                row[dcTransactionNumber] = IsNull(item.TransactionID);
                row[dcFirstName] = IsNull(item.FirstName);
                row[dcLastName] = IsNull(item.LastName);
                row[dcAmount] = IsNull(item.SettleAmount);
                row[dcDateSubmitted] = IsNull(item.DateSubmitted);
                row[dcCount] = i.ToString();

                data.Rows.Add(row);
                i++;

                //sTransactionID = item.TransactionID.ToString();

                if (IsNull(item.InvoiceNumber) == sOrderNumber)
                {
                    sTransactionID = item.TransactionID.ToString();
                }
            }

            gvData.DataSource = data;
            gvData.DataBind();

            //If Transaction Found, Display all Transaction details
            if (sTransactionID != "")
            {
                //Display DIV with details
                Transaction tran = gate.GetTransactionDetails(sTransactionID);

                lblOrderNumber.Text = IsNull(tran.InvoiceNumber);
                lblDateSubmitted.Text = IsNull(tran.DateSubmitted);

                lblFirstName.Text = IsNull(tran.FirstName);
                lblLastName.Text = IsNull(tran.LastName);
                lblBankName.Text = IsNull(tran.BankNameOnAccount);

                lblShipping.Text = IsNull(tran.Shipping);
                lblTax.Text = IsNull(tran.Tax);
                lblTotal.Text = IsNull(tran.SettleAmount);
                
                lblTransactionID.Text = IsNull(tran.TransactionID);
                lblTransactionType.Text = IsNull(tran.TransactionType);
                lblTransactionStatus.Text = IsNull(tran.Status);
                lblAuthorizationCode.Text = IsNull(tran.AuthorizationCode);
                lblPaymentMethod.Text = IsNull(tran.CardType) + " " + IsNull(tran.CardNumber);

                divOrderDetails.Visible = true;
                lblMessage.Visible = false;

                Session["CpOrderID"] = tran.InvoiceNumber;
                Session["TransactionID"] = tran.TransactionID;
                Session["AuthorizationCode"] = tran.AuthorizationCode;
                Session["OrderAmount"] = tran.SettleAmount;

                //Variables from Stored Proc
                //@CpOrderId int=null,
                //@UpdatedBy int =null,
                //@PaymentTypeId int=null,
                //@TransactionID varchar(50)=null,
                //@AuthorizationCode varchar(30)=NULL,
                //@OrderAmount DECIMAL(18,2)=NULL
            }
            else
            {
                lblMessage.Visible = true;
                divOrderDetails.Visible = false;

                Session["CpOrderID"] = null;
                Session["TransactionID"] = null;
                Session["AuthorizationCode"] = null;
                Session["OrderAmount"] = null;
            }


        }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2014 16:04:37 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-Data-differences-between-GetTransactionList-and/m-p/44664#M22633</guid>
      <dc:creator>pedrocoelho1</dc:creator>
      <dc:date>2014-06-18T16:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: C# - Data differences between GetTransactionList() and GetTransactionDetails()</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-Data-differences-between-GetTransactionList-and/m-p/44666#M22634</link>
      <description>&lt;PRE&gt;   //If Transaction Found, Display all Transaction details
            if (sTransactionID != "")
            {
                //Display DIV with details
                Transaction tran = gate.GetTransactionDetails(sTransactionID);

                lblOrderNumber.Text = IsNull(tran.InvoiceNumber);
                lblDateSubmitted.Text = IsNull(tran.DateSubmitted);

                lblFirstName.Text = IsNull(tran.FirstName);
                lblLastName.Text = IsNull(tran.LastName);&lt;/PRE&gt;&lt;P&gt;tran have a "bill to", first name and last name is in them. You can either see it in the WSDL or read the doc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or you can see it in the source, those 2 fields only fill in if it is from the transaction summary.&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://github.com/AuthorizeNet/sdk-dotnet/blob/master/Authorize.NET/Reporting/Transaction.cs"&gt;https://github.com/AuthorizeNet/sdk-dotnet/blob/master/Authorize.NET/Reporting/Transaction.cs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2014 16:37:03 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-Data-differences-between-GetTransactionList-and/m-p/44666#M22634</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-06-18T16:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: C# - Data differences between GetTransactionList() and GetTransactionDetails()</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-Data-differences-between-GetTransactionList-and/m-p/44670#M22636</link>
      <description>&lt;P&gt;I do not see BillTo in Intellisence. &amp;nbsp;The only thing I can think of is that maybe I'm not using the latest version of the Autorize.net dll.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know where I can get the latest version?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2014 17:39:51 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-Data-differences-between-GetTransactionList-and/m-p/44670#M22636</guid>
      <dc:creator>pedrocoelho1</dc:creator>
      <dc:date>2014-06-18T17:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: C# - Data differences between GetTransactionList() and GetTransactionDetails()</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-Data-differences-between-GetTransactionList-and/m-p/44672#M22637</link>
      <description>&lt;P&gt;Forget it, thats not the reason. &amp;nbsp;I have the latest version of the dll.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2014 17:44:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-Data-differences-between-GetTransactionList-and/m-p/44672#M22637</guid>
      <dc:creator>pedrocoelho1</dc:creator>
      <dc:date>2014-06-18T17:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: C# - Data differences between GetTransactionList() and GetTransactionDetails()</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-Data-differences-between-GetTransactionList-and/m-p/44674#M22638</link>
      <description>&lt;P&gt;Look like they call it BillingAddress&lt;BR /&gt;The source it &lt;A target="_blank" href="https://github.com/AuthorizeNet/sdk-dotnet/blob/master/Authorize.NET/Reporting/Transaction.cs"&gt;https://github.com/AuthorizeNet/sdk-dotnet/blob/master/Authorize.NET/Reporting/Transaction.cs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2014 17:55:10 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-Data-differences-between-GetTransactionList-and/m-p/44674#M22638</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-06-18T17:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: C# - Data differences between GetTransactionList() and GetTransactionDetails()</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-Data-differences-between-GetTransactionList-and/m-p/44676#M22639</link>
      <description>&lt;P&gt;Thanks for the help.... but I do find it strange how it is setup. &amp;nbsp;Its not consistent at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2014 20:05:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-Data-differences-between-GetTransactionList-and/m-p/44676#M22639</guid>
      <dc:creator>pedrocoelho1</dc:creator>
      <dc:date>2014-06-18T20:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: C# - Data differences between GetTransactionList() and GetTransactionDetails()</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-Data-differences-between-GetTransactionList-and/m-p/44678#M22640</link>
      <description>&lt;P&gt;That why I like doing my own code, then I know exactly what to expect.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2014 22:08:26 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-Data-differences-between-GetTransactionList-and/m-p/44678#M22640</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-06-18T22:08:26Z</dc:date>
    </item>
  </channel>
</rss>

