<?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 Transaction ID is 0 in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-ID-is-0/m-p/58892#M33500</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use sandbox and C# examples from Authorize API for charge credit card. I get information with&amp;nbsp;resultCode Ok for transaction request&amp;nbsp;but I have transaction ID zero 0&amp;nbsp;in transactionResponse.&lt;/P&gt;&lt;P&gt;I think it is not normal. How to get real transaction ID and where I can see history for charge credit card?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jul 2017 07:55:35 GMT</pubDate>
    <dc:creator>freearcher1975</dc:creator>
    <dc:date>2017-07-20T07:55:35Z</dc:date>
    <item>
      <title>Transaction ID is 0</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-ID-is-0/m-p/58892#M33500</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use sandbox and C# examples from Authorize API for charge credit card. I get information with&amp;nbsp;resultCode Ok for transaction request&amp;nbsp;but I have transaction ID zero 0&amp;nbsp;in transactionResponse.&lt;/P&gt;&lt;P&gt;I think it is not normal. How to get real transaction ID and where I can see history for charge credit card?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 07:55:35 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-ID-is-0/m-p/58892#M33500</guid>
      <dc:creator>freearcher1975</dc:creator>
      <dc:date>2017-07-20T07:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction ID is 0</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-ID-is-0/m-p/58896#M33504</link>
      <description>&lt;P&gt;The XML &lt;SPAN&gt;response&amp;nbsp;&lt;/SPAN&gt;of an API call needs to be parsed in your code behind or on the page with JavaScript&lt;/P&gt;&lt;PRE&gt;        var xml = '&amp;lt;% = responseStr %&amp;gt; ';
        var result = $(xml).find("transid").text();
        $('#transid').val(result);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If&amp;nbsp;using Accept Hosted, the transaction response needs to be parsed on your parent page from your Icommunicator.html with JavaScript similar to the following:&lt;/P&gt;&lt;PRE&gt;&amp;lt;script&amp;gt;
    window.CommunicationHandler = {};
    function parseQueryString(str) {
        var vars = [];
        var arr = str.split('&amp;amp;');
        var pair;
        for (var i = 0; i &amp;lt; arr.length; i++) {
            pair = arr[i].split('=');
            vars[pair[0]] = unescape(pair[1]);
        }
        return vars;
    }
    window.CommunicationHandler.onReceiveCommunication = function (argument) {
        params = parseQueryString(argument.qstr)
        parentFrame = argument.parent.split('/')[4];
          switch (params['action']) {
            case "transactResponse":
                var transResponse = JSON.parse(params['response']);
                $('#demo').html(transResponse.transId); // Transaction Id is here
               
        }

    }

&amp;lt;/script&amp;gt;
&lt;BR /&gt;&amp;lt;div id="demo"&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;See it in action at :&amp;nbsp;&lt;A href="https://nexwebsites.com/authorizenet/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://nexwebsites.com/authorizenet/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 12:00:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-ID-is-0/m-p/58896#M33504</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-07-20T12:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction ID is 0</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-ID-is-0/m-p/58897#M33505</link>
      <description>&lt;P&gt;A transaction id of 0 indicates your sandbox account may bein test mode. &amp;nbsp;You should set your sandbox to live mode before it will process test transactions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 12:01:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-ID-is-0/m-p/58897#M33505</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2017-07-20T12:01:29Z</dc:date>
    </item>
  </channel>
</rss>

