<?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: Terse transaction status messages in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Terse-transaction-status-messages/m-p/17516#M9782</link>
    <description>&lt;P&gt;The code is this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;		private static void _Charge(CreditCard cc, string username, string persona, string ip, string documentId, decimal amount, bool avs, string chargeType, string tranID, out string response)
        {
			bool isTest = (cc.Number == CC_NUMBER_TEST || cc.Domain == 1);
            string url = isTest ? TEST_BASE_URL : BASE_URL;

            AddParameter(ref url, PK_VERSION, PV_VERSION);
            AddParameter(ref url, PK_DELIM_DATA, PV_DELIM_DATA);
            AddParameter(ref url, PK_LOGIN, (isTest ? PV_TEST_LOGIN : PV_LOGIN));
            AddParameter(ref url, PK_TRANSACTION_KEY, (isTest ? PV_TEST_TRAN_KEY : PV_TRAN_KEY));
            AddParameter(ref url, PK_TYPE, chargeType);
            AddParameter(ref url, PK_CARD_NUM, DecryptCCNumber(cc.Number));

            if (tranID != "NONE")
            {
                AddParameter(ref url, PK_TRAN_ID, tranID);

            }

            if (cc.CSV != null)
            {
                AddParameter(ref url, PK_CARD_CODE, cc.CSV);
            }

            if (!avs)
            {
                AddParameter(ref url, PK_RECURRING_BILLING, "true");                
            }

            AddParameter(ref url, PK_EXPIRATION_DATE, cc.Expiration);
            AddParameter(ref url, PK_AMOUNT, amount);
            AddParameter(ref url, PK_DESCRIPTION, PV_DESCRIPTION_TEMPLATE.Replace(PVP_PERSONA, persona));
            AddParameter(ref url, PK_INVOICE_NUMBER, PV_INVOICE_NUMBER.Replace(PVP_DOCUMENT_ID, documentId.ToString()));
            AddParameter(ref url, PK_CUSTOMER_ID, username);
            AddParameter(ref url, PK_FIRST_NAME, cc.FirstName);
            AddParameter(ref url, PK_LAST_NAME, cc.LastName);
            AddParameter(ref url, PK_ADDRESS, cc.Address1 + " " + cc.Address2);
            AddParameter(ref url, PK_CITY, cc.City);
            AddParameter(ref url, PK_STATE, cc.Region);
            AddParameter(ref url, PK_ZIP, cc.PostalCode);
            AddParameter(ref url, PK_COUNTRY, cc.Country);
            AddParameter(ref url, PK_PHONE, cc.Phone);
            AddParameter(ref url, PK_EMAIL, cc.Email);
            AddParameter(ref url, PK_CUSTOMER_IP, ip);

            WebClient client = new WebClient();

            client.Headers.Add(HK_USER_AGENT, HV_USER_AGENT);
            Stream data = client.OpenRead(url);
            StreamReader reader = new StreamReader(data);

            response = reader.ReadToEnd();
        }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Sep 2011 19:07:50 GMT</pubDate>
    <dc:creator>lyndacom</dc:creator>
    <dc:date>2011-09-30T19:07:50Z</dc:date>
    <item>
      <title>Terse transaction status messages</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Terse-transaction-status-messages/m-p/17460#M9756</link>
      <description>&lt;P&gt;When we initiate a transaction to az.net and it is declined, the message returned is Transaction Declined. &amp;nbsp;If we look at our interface on the az.net site it gives more detail such as "Card declined by issuer". &amp;nbsp;Is there any way to get this more descriptive declination message from the API?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2011 16:44:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Terse-transaction-status-messages/m-p/17460#M9756</guid>
      <dc:creator>lyndacom</dc:creator>
      <dc:date>2011-09-29T16:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Terse transaction status messages</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Terse-transaction-status-messages/m-p/17472#M9761</link>
      <description>&lt;P&gt;This is on AIM by the way...&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2011 17:54:44 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Terse-transaction-status-messages/m-p/17472#M9761</guid>
      <dc:creator>lyndacom</dc:creator>
      <dc:date>2011-09-29T17:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Terse transaction status messages</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Terse-transaction-status-messages/m-p/17490#M9769</link>
      <description>&lt;P&gt;Can you paste the code you're currently using to access the error message?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2011 08:57:54 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Terse-transaction-status-messages/m-p/17490#M9769</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-09-30T08:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Terse transaction status messages</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Terse-transaction-status-messages/m-p/17508#M9778</link>
      <description>&lt;P&gt;Basically I hit&amp;nbsp;&lt;A target="_blank" href="https://secure.authorize.net/gateway/transact.dll"&gt;https://secure.authorize.net/gateway/transact.dll&lt;/A&gt;﻿ with a query string with all of the transaction data and then I get the response data from that.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2011 16:24:48 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Terse-transaction-status-messages/m-p/17508#M9778</guid>
      <dc:creator>lyndacom</dc:creator>
      <dc:date>2011-09-30T16:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Terse transaction status messages</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Terse-transaction-status-messages/m-p/17516#M9782</link>
      <description>&lt;P&gt;The code is this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;		private static void _Charge(CreditCard cc, string username, string persona, string ip, string documentId, decimal amount, bool avs, string chargeType, string tranID, out string response)
        {
			bool isTest = (cc.Number == CC_NUMBER_TEST || cc.Domain == 1);
            string url = isTest ? TEST_BASE_URL : BASE_URL;

            AddParameter(ref url, PK_VERSION, PV_VERSION);
            AddParameter(ref url, PK_DELIM_DATA, PV_DELIM_DATA);
            AddParameter(ref url, PK_LOGIN, (isTest ? PV_TEST_LOGIN : PV_LOGIN));
            AddParameter(ref url, PK_TRANSACTION_KEY, (isTest ? PV_TEST_TRAN_KEY : PV_TRAN_KEY));
            AddParameter(ref url, PK_TYPE, chargeType);
            AddParameter(ref url, PK_CARD_NUM, DecryptCCNumber(cc.Number));

            if (tranID != "NONE")
            {
                AddParameter(ref url, PK_TRAN_ID, tranID);

            }

            if (cc.CSV != null)
            {
                AddParameter(ref url, PK_CARD_CODE, cc.CSV);
            }

            if (!avs)
            {
                AddParameter(ref url, PK_RECURRING_BILLING, "true");                
            }

            AddParameter(ref url, PK_EXPIRATION_DATE, cc.Expiration);
            AddParameter(ref url, PK_AMOUNT, amount);
            AddParameter(ref url, PK_DESCRIPTION, PV_DESCRIPTION_TEMPLATE.Replace(PVP_PERSONA, persona));
            AddParameter(ref url, PK_INVOICE_NUMBER, PV_INVOICE_NUMBER.Replace(PVP_DOCUMENT_ID, documentId.ToString()));
            AddParameter(ref url, PK_CUSTOMER_ID, username);
            AddParameter(ref url, PK_FIRST_NAME, cc.FirstName);
            AddParameter(ref url, PK_LAST_NAME, cc.LastName);
            AddParameter(ref url, PK_ADDRESS, cc.Address1 + " " + cc.Address2);
            AddParameter(ref url, PK_CITY, cc.City);
            AddParameter(ref url, PK_STATE, cc.Region);
            AddParameter(ref url, PK_ZIP, cc.PostalCode);
            AddParameter(ref url, PK_COUNTRY, cc.Country);
            AddParameter(ref url, PK_PHONE, cc.Phone);
            AddParameter(ref url, PK_EMAIL, cc.Email);
            AddParameter(ref url, PK_CUSTOMER_IP, ip);

            WebClient client = new WebClient();

            client.Headers.Add(HK_USER_AGENT, HV_USER_AGENT);
            Stream data = client.OpenRead(url);
            StreamReader reader = new StreamReader(data);

            response = reader.ReadToEnd();
        }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2011 19:07:50 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Terse-transaction-status-messages/m-p/17516#M9782</guid>
      <dc:creator>lyndacom</dc:creator>
      <dc:date>2011-09-30T19:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Terse transaction status messages</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Terse-transaction-status-messages/m-p/17522#M9785</link>
      <description>&lt;P&gt;Hmm, not familiar with that syntax. I do know that when I use the PHP API, I get back a response that contains error codes and response reason text:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://www.authorize.net/support/merchant/Transaction_Response/Response_Reason_Codes_and_Response_Reason_Text.htm"&gt;http://www.authorize.net/support/merchant/Transaction_Response/Response_Reason_Codes_and_Response_Reason_Text.htm&lt;/A&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some of the text is fairly specific, some is not - either for security reasons or because they haven't bothered. There are also additional notes beyond what is shown in the table here if you use this other tool:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://developer.authorize.net/tools/responsereasoncode/"&gt;http://developer.authorize.net/tools/responsereasoncode/&lt;/A&gt;﻿&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2011 20:35:46 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Terse-transaction-status-messages/m-p/17522#M9785</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-09-30T20:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Terse transaction status messages</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Terse-transaction-status-messages/m-p/17618#M9832</link>
      <description>&lt;P&gt;Thanks gents. &amp;nbsp;I used the reason tool but it gave me back the same generic transaction declined that the API returns on a transaction that was declined by the card issuer. &amp;nbsp; Even looking at the table here:&amp;nbsp;&lt;A target="_blank" href="http://www.authorize.net/support/merchant/Transaction_Response/Response_Reason_Codes_and_Response_Reason_Text.htm"&gt;http://www.authorize.net/support/merchant/Transaction_Response/Response_Reason_Codes_and_Response_Reason_Text.htm&lt;/A&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will not see the specific error code that the web interface to the account will list.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2011 15:47:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Terse-transaction-status-messages/m-p/17618#M9832</guid>
      <dc:creator>lyndacom</dc:creator>
      <dc:date>2011-10-03T15:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Terse transaction status messages</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Terse-transaction-status-messages/m-p/17626#M9836</link>
      <description>&lt;P&gt;Can you tell us what Response reason code and what the specific error code on the web interface that you get?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2011 15:59:47 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Terse-transaction-status-messages/m-p/17626#M9836</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2011-10-03T15:59:47Z</dc:date>
    </item>
  </channel>
</rss>

