<?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: How can I use sdk-node setTrackData for Card Present transactions? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-can-I-use-sdk-node-setTrackData-for-Card-Present/m-p/88408#M55713</link>
    <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;paymentSDK.initialize is not a function&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I've searched all of the&lt;A href="https://github.com/AuthorizeNet/sdk-node" target="_self"&gt;&amp;nbsp;node-sdk&lt;/A&gt;&amp;nbsp;files and cannot find any reference to the method "initialize" or "processTransaction." &amp;nbsp;Are you just making up pseudocode?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where is the documentation for your code, showing all the parameters, their formatting and required fields?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 23 Dec 2023 16:02:45 GMT</pubDate>
    <dc:creator>jamesastound</dc:creator>
    <dc:date>2023-12-23T16:02:45Z</dc:date>
    <item>
      <title>How can I use sdk-node setTrackData for Card Present transactions?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-can-I-use-sdk-node-setTrackData-for-Card-Present/m-p/88400#M55705</link>
      <description>&lt;P&gt;I am using the &lt;A href="https://github.com/AuthorizeNet/sdk-node" target="_self"&gt;sdk-node&lt;/A&gt; library.&lt;/P&gt;&lt;P&gt;I am attempting to use the&lt;A href="https://github.com/AuthorizeNet/sample-code-node/blob/ef9e5c2d9e0379b5f47a0ebcb6847e711fe196ef/PaymentTransactions/authorize-credit-card.js" target="_self"&gt; authorize-credit-card.js&lt;/A&gt; sample and add track data to the process.&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;class&lt;/SPAN&gt; &lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="inherit"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;PaymentType&lt;/FONT&gt;&lt;/STRONG&gt; in&lt;A href="https://github.com/AuthorizeNet/sdk-node/blob/master/lib/apicontracts.js" target="_self"&gt; apic&lt;/A&gt;&lt;/FONT&gt;&lt;A href="https://github.com/AuthorizeNet/sdk-node/blob/master/lib/apicontracts.js" target="_self"&gt;ontracts&lt;FONT face="inherit"&gt;.js&lt;/FONT&gt;&lt;/A&gt;&amp;nbsp;shows &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;setTrackData&lt;/FONT&gt;&lt;/STRONG&gt; as an available method.&lt;/P&gt;&lt;P&gt;I've tried applying it to the payment class using:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; creditCard &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;ApiContracts&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;CreditCardType&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;creditCard&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;setCardNumber&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;transactionData&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;cardNumber&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;creditCard&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;setExpirationDate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;transactionData&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;expirationDate&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;creditCard&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;setCardCode&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;transactionData&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;code&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; trackData &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;ApiContracts&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;CreditCardTrackType&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;trackData&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;setTrack1&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;transactionData&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;track1&lt;/SPAN&gt;&lt;SPAN&gt;));&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;trackData&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;setTrack2&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;transactionData&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;track2&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;console&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;log&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;trackData&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt; trackData&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&lt;SPAN&gt;//&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;CreditCardTrackType &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/FONT&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;// &amp;nbsp; track1&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Bxxxxxxxxxxxxxx ^xx0510100000009601000000259000000&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;// &amp;nbsp; track2&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;xxxxxxxxxxxxxx=0905101096010259&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;// &amp;nbsp;}&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; paymentType &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;ApiContracts&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;PaymentType&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;paymentType&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;setCreditCard&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;creditCard&lt;/SPAN&gt;&lt;SPAN&gt;); // &lt;STRONG&gt;THIS console.log shows trackData: null&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;console&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;log&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;paymentType&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt; paymentType&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;paymentType&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;setTrackData&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;trackData&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;console&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;log&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;paymentType after setTrackData&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt; paymentType&lt;/SPAN&gt;&lt;SPAN&gt;); // &lt;STRONG&gt;THIS console.log shows the&amp;nbsp;CreditCardTrackType, from above&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Submitting the data produces the following error:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;MessagesType &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;resultCode&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Error&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;message&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;[&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; code&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;E00003&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; text&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;The element 'payment' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'trackData' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'dataSource' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; ]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Dec 2023 14:19:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-can-I-use-sdk-node-setTrackData-for-Card-Present/m-p/88400#M55705</guid>
      <dc:creator>jamesastound</dc:creator>
      <dc:date>2023-12-22T14:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use sdk-node setTrackData for Card Present transactions?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-can-I-use-sdk-node-setTrackData-for-Card-Present/m-p/88403#M55708</link>
      <description>&lt;P&gt;&amp;nbsp;use this code&amp;nbsp;&lt;/P&gt;&lt;P&gt;const paymentSDK = require('sdk-node'); // Replace 'sdk-node' with the actual SDK module&lt;/P&gt;&lt;P&gt;// Initialize the SDK with your credentials or configuration&lt;BR /&gt;paymentSDK.initialize({&lt;BR /&gt;apiKey: 'your_api_key',&lt;BR /&gt;// other configuration parameters&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;// Create a transaction object with the required details&lt;BR /&gt;const cardPresentTransaction = {&lt;BR /&gt;amount: 1000, // Replace with your desired amount&lt;BR /&gt;trackData: 'your_encrypted_track_data', // Replace with the actual encrypted track data&lt;BR /&gt;// other transaction details&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;// Set the track data for the Card Present transaction&lt;BR /&gt;paymentSDK.setTrackData(cardPresentTransaction.trackData);&lt;/P&gt;&lt;P&gt;// Process the transaction&lt;BR /&gt;paymentSDK.processTransaction(cardPresentTransaction)&lt;BR /&gt;.then(result =&amp;gt; {&lt;BR /&gt;// Handle the result of the transaction&lt;BR /&gt;console.log('Transaction result:', result);&lt;BR /&gt;})&lt;BR /&gt;.catch(error =&amp;gt; {&lt;BR /&gt;// Handle errors&lt;BR /&gt;console.error('Transaction error:', error);&lt;BR /&gt;});&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 20:44:25 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-can-I-use-sdk-node-setTrackData-for-Card-Present/m-p/88403#M55708</guid>
      <dc:creator>bilalmirza</dc:creator>
      <dc:date>2023-12-22T20:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use sdk-node setTrackData for Card Present transactions?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-can-I-use-sdk-node-setTrackData-for-Card-Present/m-p/88408#M55713</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;paymentSDK.initialize is not a function&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I've searched all of the&lt;A href="https://github.com/AuthorizeNet/sdk-node" target="_self"&gt;&amp;nbsp;node-sdk&lt;/A&gt;&amp;nbsp;files and cannot find any reference to the method "initialize" or "processTransaction." &amp;nbsp;Are you just making up pseudocode?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where is the documentation for your code, showing all the parameters, their formatting and required fields?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Dec 2023 16:02:45 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-can-I-use-sdk-node-setTrackData-for-Card-Present/m-p/88408#M55713</guid>
      <dc:creator>jamesastound</dc:creator>
      <dc:date>2023-12-23T16:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use sdk-node setTrackData for Card Present transactions?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-can-I-use-sdk-node-setTrackData-for-Card-Present/m-p/88412#M55717</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;You're encountering an issue with the SDK while attempting to add track data to a credit card transaction. The error message suggests that the 'track data' element is not being recognized as a valid child element within the 'payment' element.&lt;/P&gt;&lt;P&gt;To troubleshoot, make sure you are using the correct structure and method for adding track data. Here's a revised version of your code with adjustments:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;javascript&lt;/SPAN&gt;Copy code&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;var&lt;/SPAN&gt; creditCard = &lt;SPAN class=""&gt;new&lt;/SPAN&gt; &lt;SPAN class=""&gt;ApiContracts&lt;/SPAN&gt;.&lt;SPAN class=""&gt;CreditCardType&lt;/SPAN&gt;(); creditCard.&lt;SPAN class=""&gt;setCardNumber&lt;/SPAN&gt;(transactionData.&lt;SPAN class=""&gt;cardNumber&lt;/SPAN&gt;); creditCard.&lt;SPAN class=""&gt;setExpirationDate&lt;/SPAN&gt;(transactionData.&lt;SPAN class=""&gt;expirationDate&lt;/SPAN&gt;); creditCard.&lt;SPAN class=""&gt;setCardCode&lt;/SPAN&gt;(transactionData.&lt;SPAN class=""&gt;code&lt;/SPAN&gt;); &lt;SPAN class=""&gt;var&lt;/SPAN&gt; trackData = &lt;SPAN class=""&gt;new&lt;/SPAN&gt; &lt;SPAN class=""&gt;ApiContracts&lt;/SPAN&gt;.&lt;SPAN class=""&gt;CreditCardTrackType&lt;/SPAN&gt;(); trackData.&lt;SPAN class=""&gt;setTrack1&lt;/SPAN&gt;(transactionData.&lt;SPAN class=""&gt;track1&lt;/SPAN&gt;); trackData.&lt;SPAN class=""&gt;setTrack2&lt;/SPAN&gt;(transactionData.&lt;SPAN class=""&gt;track2&lt;/SPAN&gt;); &lt;SPAN class=""&gt;var&lt;/SPAN&gt; paymentType = &lt;SPAN class=""&gt;new&lt;/SPAN&gt; &lt;SPAN class=""&gt;ApiContracts&lt;/SPAN&gt;.&lt;SPAN class=""&gt;PaymentType&lt;/SPAN&gt;(); paymentType.&lt;SPAN class=""&gt;setCreditCard&lt;/SPAN&gt;(creditCard); &lt;SPAN class=""&gt;// Use setPaymentType method to specify the payment type&lt;/SPAN&gt; paymentType.&lt;SPAN class=""&gt;setPaymentType&lt;/SPAN&gt;(&lt;SPAN class=""&gt;ApiContracts&lt;/SPAN&gt;.&lt;SPAN class=""&gt;PaymentTypeEnum&lt;/SPAN&gt;.&lt;SPAN class=""&gt;CREDITCARD&lt;/SPAN&gt;); &lt;SPAN class=""&gt;// Set the track data using setTrackData method&lt;/SPAN&gt; paymentType.&lt;SPAN class=""&gt;setTrackData&lt;/SPAN&gt;(trackData); &lt;SPAN class=""&gt;console&lt;/SPAN&gt;.&lt;SPAN class=""&gt;log&lt;/SPAN&gt;(&lt;SPAN class=""&gt;'paymentType'&lt;/SPAN&gt;, paymentType); &lt;SPAN class=""&gt;// Continue with the rest of your transaction processing...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;In this revised code, I added the setPaymentType method to set the payment type to 'CREDITCARD explicitly' and used setTrackData directly on the paymentType object. Ensure that the SDK documentation aligns with these modifications, and adjust accordingly based on your SDK version.&lt;/P&gt;&lt;P&gt;If the issue persists, consider checking the SDK documentation or contacting the SDK's support for specific guidance on handling track data in card-present transactions.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 25 Dec 2023 07:28:49 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-can-I-use-sdk-node-setTrackData-for-Card-Present/m-p/88412#M55717</guid>
      <dc:creator>jhoney12</dc:creator>
      <dc:date>2023-12-25T07:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use sdk-node setTrackData for Card Present transactions?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-can-I-use-sdk-node-setTrackData-for-Card-Present/m-p/88434#M55728</link>
      <description>&lt;P&gt;Thanks for the replies. Unfortunately, again, I'm getting advice for methods that do not exist in the sdk-node library. &amp;nbsp;&lt;SPAN&gt;paymentType.&lt;/SPAN&gt;&lt;SPAN class=""&gt;setPaymentType is not a method that exists on the &lt;A href="https://github.com/AuthorizeNet/sdk-node/blob/master/lib/apicontracts.js#L2625" target="_self"&gt;ApiContracts.PaymentType()&lt;/A&gt; class. Also&amp;nbsp;&lt;SPAN&gt;ApiContracts does not have a property PaymentTypeEnum.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I've already searched the documentation, which is why I am posting here. There are no mentions of how to apply track data using the sdk-node library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 19:24:45 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-can-I-use-sdk-node-setTrackData-for-Card-Present/m-p/88434#M55728</guid>
      <dc:creator>jamesastound</dc:creator>
      <dc:date>2023-12-28T19:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use sdk-node setTrackData for Card Present transactions?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-can-I-use-sdk-node-setTrackData-for-Card-Present/m-p/88438#M55732</link>
      <description>&lt;P&gt;Use dataSource Property: If the documentation suggests using dataSource, modify your code as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var paymentType = new ApiContracts.PaymentType();
paymentType.setCreditCard(creditCard);
paymentType.setDataSource(ApiContracts.PaymentType.DATA_SOURCE.TRACK_DATA);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Consult SDK Documentation: Refer to the sdk-node library's documentation for specific instructions on how to provide track data within the context of the chosen data source. There might be additional methods or properties involved. &lt;A href="https://ativadore.com/adobe-flash-player-crackeado/" target="_self"&gt;adobe flash player&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2023 11:40:11 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-can-I-use-sdk-node-setTrackData-for-Card-Present/m-p/88438#M55732</guid>
      <dc:creator>ativadore</dc:creator>
      <dc:date>2023-12-29T11:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use sdk-node setTrackData for Card Present transactions?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-can-I-use-sdk-node-setTrackData-for-Card-Present/m-p/88439#M55733</link>
      <description>&lt;P&gt;What specific documentation exists for applying trackData? I've looked. I don't see any documentation, only the classes that exist in the apicontracts.js file, of which PaymentType.DATA_SOURCE.TRACK_DATA is not part of.&lt;/P&gt;&lt;P&gt;There is nothing within the&lt;A href="https://github.com/AuthorizeNet/sdk-node" target="_self"&gt; sdk-node repository&lt;/A&gt;, the&lt;A href="https://github.com/AuthorizeNet/sdk-node/issues?q=trackData" target="_self"&gt; sdk-node issues&lt;/A&gt;, or the &lt;A href="https://developer.authorize.net/api/reference/index.html" target="_self"&gt;Authorize.net API Documentation&lt;/A&gt;, that shows how to apply track data using the sdk-node library.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2023 11:59:37 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-can-I-use-sdk-node-setTrackData-for-Card-Present/m-p/88439#M55733</guid>
      <dc:creator>jamesastound</dc:creator>
      <dc:date>2023-12-29T11:59:37Z</dc:date>
    </item>
  </channel>
</rss>

