<?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: Accept.js encryption failed in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-encryption-failed/m-p/59680#M34257</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/22272"&gt;@ganeshkunte&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No, there's no way to get the token representing the card number without providing the card number that you want the token to be for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What exactly are you hoping to do by getting a token without card details?&lt;/P&gt;</description>
    <pubDate>Tue, 05 Sep 2017 20:34:08 GMT</pubDate>
    <dc:creator>Aaron</dc:creator>
    <dc:date>2017-09-05T20:34:08Z</dc:date>
    <item>
      <title>Accept.js encryption failed</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-encryption-failed/m-p/59660#M34238</link>
      <description>&lt;P&gt;Can we generate the dataDescriptor &amp;amp; dataValue without providing the Credit card details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im trying to load the function using document.ready.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;BR /&gt;$(document).ready(function(){&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; loadAuthNetKey();&lt;BR /&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;BR /&gt;function loadAuthNetKey(){&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;var secureData = {}, authData = {};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;authData.clientKey = '$hostKey';&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;authData.apiLoginID = '$paymentGateWayHostID';&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;secureData.authData = authData;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Accept.dispatchData(secureData, 'responseHandlerSave');&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;function responseHandlerSave(response)&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;&amp;nbsp; console.log(JSON.stringify(response));&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if (response.messages.resultCode === 'Error') {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (var i = 0; i &amp;lt; response.messages.message.length; i++) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; unBlock();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//console.log(response.messages.message[i].code + ':' + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; response.messages.message[i].text);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;alert(response.messages.message[i].text)&lt;BR /&gt;return false;&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; useOpaqueData(response.opaqueData)&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In response i need the&amp;nbsp;&lt;SPAN&gt;dataDescriptor&amp;nbsp; and dataValue. But im getting the Accept.js encryption failed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kindly help me what is wrong in my code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ganesh&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2017 11:42:35 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-encryption-failed/m-p/59660#M34238</guid>
      <dc:creator>ganeshkunte</dc:creator>
      <dc:date>2017-09-04T11:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Accept.js encryption failed</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-encryption-failed/m-p/59680#M34257</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/22272"&gt;@ganeshkunte&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No, there's no way to get the token representing the card number without providing the card number that you want the token to be for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What exactly are you hoping to do by getting a token without card details?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 20:34:08 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-encryption-failed/m-p/59680#M34257</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-09-05T20:34:08Z</dc:date>
    </item>
  </channel>
</rss>

