<?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: Track1 Data VS Track2 Data in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Track1-Data-VS-Track2-Data/m-p/21233#M11575</link>
    <description>&lt;P&gt;I'd say that the data is what it is, and if the solution is as simple as it seems, why not just patch for that and move on? Just split on the ; and use the first item from the resulting array - a length test will tell you whether it's track 1 or 2.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jan 2012 04:55:44 GMT</pubDate>
    <dc:creator>TJPride</dc:creator>
    <dc:date>2012-01-06T04:55:44Z</dc:date>
    <item>
      <title>Track1 Data VS Track2 Data</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Track1-Data-VS-Track2-Data/m-p/21229#M11573</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have built a custom online POS system and im having some issues with trackdata1 VS trackdata2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The credit cards that are swiped come in different formats&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that Track 1 should look like this&lt;BR /&gt;B4000000000000002^CardUser/John^131210100000019301000000877000000?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and track 2 looks like this&lt;BR /&gt;4000000000000002=1312101193010877?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BUT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What if the string contains BOTH formats:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example of what one looks like:&lt;/P&gt;&lt;P&gt;B4000000000000002^CardUser/John^131210100000019301000000877000000?;4000000000000002=1312101193010877?&lt;/P&gt;&lt;P&gt;As you can see it contains both formats!! this will tosses an error when trying to run as a Track1 data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my only solution is in PHP explode at the ; and take the first part of the string if ; is present!!&lt;/P&gt;&lt;P&gt;then run them as a trackdata1 value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;would like to know if anyone else has experenced the issue or am im missing something here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2012 00:07:01 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Track1-Data-VS-Track2-Data/m-p/21229#M11573</guid>
      <dc:creator>YAC</dc:creator>
      <dc:date>2012-01-06T00:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Track1 Data VS Track2 Data</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Track1-Data-VS-Track2-Data/m-p/21233#M11575</link>
      <description>&lt;P&gt;I'd say that the data is what it is, and if the solution is as simple as it seems, why not just patch for that and move on? Just split on the ; and use the first item from the resulting array - a length test will tell you whether it's track 1 or 2.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2012 04:55:44 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Track1-Data-VS-Track2-Data/m-p/21233#M11575</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2012-01-06T04:55:44Z</dc:date>
    </item>
  </channel>
</rss>

