<?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: I_WC_01 overrides with E_WC_14 in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/I-WC-01-overrides-with-E-WC-14/m-p/63962#M37971</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21382"&gt;@Anurag&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/22768"&gt;@Shoagraw&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have traced down the issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is that because I am using Ember.js in my app, the prototype functions in AcceptCore.js&amp;nbsp;response parsing -&amp;gt; c.messages.message are reflecting some of Ember.js functions as well (See attached image)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your response parser function is not expecting that so when it finds an undefined prototype fuction it throws exception. There is no way on our end to not use Ember (our entire cart/checkout is developed in ember). Is there a way you can provide some sort of compatibility and provide undefined check here?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It&amp;nbsp;would be really helpful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please guide.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.developer.cybersource.com/t5/image/serverpage/image-id/417i392FCEED20D89D74/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Screen Shot 2018-07-30 at 1.35.06 PM.png" title="Screen Shot 2018-07-30 at 1.35.06 PM.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Stuti&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jul 2018 20:41:49 GMT</pubDate>
    <dc:creator>svora</dc:creator>
    <dc:date>2018-07-30T20:41:49Z</dc:date>
    <item>
      <title>I_WC_01 overrides with E_WC_14</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/I-WC-01-overrides-with-E-WC-14/m-p/63910#M37924</link>
      <description>&lt;P&gt;Line 221 in &lt;STRONG&gt;AcceptCore.js&lt;/STRONG&gt;&amp;nbsp; where it parses the response, it parses&amp;nbsp;I_WC_01&amp;nbsp; for the first time correctly in the while loop, after the second and third pass in the while loop, something&amp;nbsp;named&amp;nbsp;"firsObject" which obviously breaks the try block and there it overrides the successful response with&amp;nbsp;with&amp;nbsp; error response E_WC_14 (encryption failed.)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone&amp;nbsp;&lt;STRONG&gt;PLEASE&lt;/STRONG&gt; guide on this? I checked all my input parameters are correct and I am getting successful response with all the required opaqueData and everything, but I am not able to use it because it gets overriden by this Error response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is very critical. I have to meet deadline. Please guide.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.screencast.com/t/BKFpHjbpOBW" target="_blank"&gt;https://www.screencast.com/t/BKFpHjbpOBW&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 19:49:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/I-WC-01-overrides-with-E-WC-14/m-p/63910#M37924</guid>
      <dc:creator>svora</dc:creator>
      <dc:date>2018-07-26T19:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: I_WC_01 overrides with E_WC_14</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/I-WC-01-overrides-with-E-WC-14/m-p/63926#M37940</link>
      <description>&lt;P&gt;Hi svora,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Trying to understand your problem here:-&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;So Accept.js gives you correct response first time, and when you call second or third time, is it start giving&amp;nbsp;&lt;SPAN&gt;E_WC_14?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;or in First time call itself you start receiving E_WC_14?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Also if it may help you to understand the problem better if you Pls. go to network tab in debug window and see the network call response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shobhit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 21:27:21 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/I-WC-01-overrides-with-E-WC-14/m-p/63926#M37940</guid>
      <dc:creator>Shoagraw</dc:creator>
      <dc:date>2018-07-27T21:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: I_WC_01 overrides with E_WC_14</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/I-WC-01-overrides-with-E-WC-14/m-p/63928#M37941</link>
      <description>&lt;P&gt;Hey Shobhit,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the screencast, I am checking through the network tab only.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am seeing the issue in the first call only. I am not calling it second time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I call for the first time, and it reaches line 221 in AcceptCore.js to parse the sucess message,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am seeing it go to the case where it sets it to&amp;nbsp;&lt;SPAN&gt;I_WC_01 with the correct success OK message.&amp;nbsp;&lt;BR /&gt;In the same call with message object has prototype functions which has undefined functions like "firstObject" which the&amp;nbsp;for loop reads and throws exception which goes to the catch where it overrides the success response with error response (E_WC_14).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Basically, what it needs is&amp;nbsp;something like prototype.hasOwnProperty() to check that its not counting functions / undefined functions in the&amp;nbsp;for loop.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can refer to the screencast.&amp;nbsp;&lt;A href="https://www.screencast.com/t/BKFpHjbpOBW" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.screencast.com/t/BKFpHjbpOBW&lt;/A&gt;&amp;nbsp;(You can just skip it to go to the point where it reaches line 221 parsing in AccetpCore.js)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;The following post also addressed this issue but I could not see it got resolved.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.developer.authorize.net/t5/Integration-and-Testing/Accept-js-error-E-WC-14-Accept-js-encryption-failed/td-p/55531/highlight/true/page/4" target="_blank"&gt;https://community.developer.authorize.net/t5/Integration-and-Testing/Accept-js-error-E-WC-14-Accept-js-encryption-failed/td-p/55531/highlight/true/page/4&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please guide further.&amp;nbsp;&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;Stuti&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 22:37:04 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/I-WC-01-overrides-with-E-WC-14/m-p/63928#M37941</guid>
      <dc:creator>svora</dc:creator>
      <dc:date>2018-07-27T22:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: I_WC_01 overrides with E_WC_14</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/I-WC-01-overrides-with-E-WC-14/m-p/63937#M37950</link>
      <description>&lt;P&gt;If&amp;nbsp;there&amp;nbsp;is a&amp;nbsp;check added for&amp;nbsp;&amp;nbsp; c.messages.message[d].code&amp;nbsp; for type undefined&amp;nbsp; on line 222 in AcceptCore.js that would help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Stuti&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jul 2018 19:07:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/I-WC-01-overrides-with-E-WC-14/m-p/63937#M37950</guid>
      <dc:creator>svora</dc:creator>
      <dc:date>2018-07-29T19:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: I_WC_01 overrides with E_WC_14</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/I-WC-01-overrides-with-E-WC-14/m-p/63943#M37956</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/25409"&gt;@svora&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The E_WC_14 error thrown may be in case of error in your code also&amp;nbsp; .&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Have you tried using our Accept Sample&amp;nbsp;App&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/accept-sample-app" target="_blank"&gt;https://github.com/AuthorizeNet/accept-sample-app&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://github.com/AuthorizeNet/accept-sample-app/blob/master/acceptJSCaller.js" target="_blank"&gt;https://github.com/AuthorizeNet/accept-sample-app/blob/master/acceptJSCaller.js&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&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;</description>
      <pubDate>Mon, 30 Jul 2018 07:17:30 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/I-WC-01-overrides-with-E-WC-14/m-p/63943#M37956</guid>
      <dc:creator>Anurag</dc:creator>
      <dc:date>2018-07-30T07:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: I_WC_01 overrides with E_WC_14</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/I-WC-01-overrides-with-E-WC-14/m-p/63962#M37971</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21382"&gt;@Anurag&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/22768"&gt;@Shoagraw&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have traced down the issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is that because I am using Ember.js in my app, the prototype functions in AcceptCore.js&amp;nbsp;response parsing -&amp;gt; c.messages.message are reflecting some of Ember.js functions as well (See attached image)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your response parser function is not expecting that so when it finds an undefined prototype fuction it throws exception. There is no way on our end to not use Ember (our entire cart/checkout is developed in ember). Is there a way you can provide some sort of compatibility and provide undefined check here?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It&amp;nbsp;would be really helpful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please guide.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.developer.cybersource.com/t5/image/serverpage/image-id/417i392FCEED20D89D74/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Screen Shot 2018-07-30 at 1.35.06 PM.png" title="Screen Shot 2018-07-30 at 1.35.06 PM.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Stuti&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 20:41:49 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/I-WC-01-overrides-with-E-WC-14/m-p/63962#M37971</guid>
      <dc:creator>svora</dc:creator>
      <dc:date>2018-07-30T20:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: I_WC_01 overrides with E_WC_14</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/I-WC-01-overrides-with-E-WC-14/m-p/63966#M37975</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21382"&gt;@Anurag&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/22768"&gt;@Shoagraw&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following check worked when I tried including Accept.js and AcceptCore.js locally ignoring the CDN error just for testing. Is it possible to include this? This will help in general with all cases. Please consider it.&amp;nbsp; Please guide.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;function &lt;/SPAN&gt;&lt;SPAN&gt;s&lt;/SPAN&gt;(a, b) {&lt;BR /&gt;    &lt;SPAN&gt;try &lt;/SPAN&gt;{&lt;BR /&gt;        &lt;SPAN&gt;var &lt;/SPAN&gt;&lt;SPAN&gt;c &lt;/SPAN&gt;= &lt;SPAN&gt;JSON&lt;/SPAN&gt;.&lt;SPAN&gt;parse&lt;/SPAN&gt;(a.&lt;SPAN&gt;responseText&lt;/SPAN&gt;);&lt;BR /&gt;        &lt;SPAN&gt;if &lt;/SPAN&gt;(&lt;SPAN&gt;void &lt;/SPAN&gt;&lt;SPAN&gt;0 &lt;/SPAN&gt;!== &lt;SPAN&gt;c&lt;/SPAN&gt;.&lt;SPAN&gt;messages&lt;/SPAN&gt;.&lt;SPAN&gt;resultCode &lt;/SPAN&gt;&amp;amp;&amp;amp; &lt;SPAN&gt;void &lt;/SPAN&gt;&lt;SPAN&gt;0 &lt;/SPAN&gt;!== &lt;SPAN&gt;c&lt;/SPAN&gt;.&lt;SPAN&gt;messages&lt;/SPAN&gt;.&lt;SPAN&gt;message &lt;/SPAN&gt;&amp;amp;&amp;amp; &lt;SPAN&gt;c&lt;/SPAN&gt;.&lt;SPAN&gt;messages&lt;/SPAN&gt;.&lt;SPAN&gt;message&lt;/SPAN&gt;.&lt;SPAN&gt;length &lt;/SPAN&gt;&amp;gt;= &lt;SPAN&gt;1&lt;/SPAN&gt;) {&lt;BR /&gt;            &lt;SPAN&gt;for &lt;/SPAN&gt;(&lt;SPAN&gt;var &lt;/SPAN&gt;&lt;SPAN&gt;d &lt;/SPAN&gt;&lt;SPAN&gt;in &lt;/SPAN&gt;&lt;SPAN&gt;c&lt;/SPAN&gt;.&lt;SPAN&gt;messages&lt;/SPAN&gt;.&lt;SPAN&gt;message&lt;/SPAN&gt;)&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;                if(typeof c.messages.message[d] !== "undefined" &amp;amp;&amp;amp; typeof c.messages.message[d] !== "function") {&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;                    &lt;SPAN&gt;switch &lt;/SPAN&gt;(&lt;SPAN&gt;c&lt;/SPAN&gt;.&lt;SPAN&gt;messages&lt;/SPAN&gt;.&lt;SPAN&gt;message&lt;/SPAN&gt;[&lt;SPAN&gt;d&lt;/SPAN&gt;].&lt;SPAN&gt;code&lt;/SPAN&gt;) {&lt;BR /&gt;                        &lt;SPAN&gt;case &lt;/SPAN&gt;&lt;SPAN&gt;"I00001"&lt;/SPAN&gt;:&lt;BR /&gt;                            &lt;SPAN&gt;c&lt;/SPAN&gt;.&lt;SPAN&gt;messages&lt;/SPAN&gt;.&lt;SPAN&gt;message&lt;/SPAN&gt;[&lt;SPAN&gt;d&lt;/SPAN&gt;].&lt;SPAN&gt;code &lt;/SPAN&gt;= &lt;SPAN&gt;"I_WC_01"&lt;/SPAN&gt;;&lt;BR /&gt;                            &lt;SPAN&gt;break&lt;/SPAN&gt;;&lt;BR /&gt;                        &lt;SPAN&gt;case &lt;/SPAN&gt;&lt;SPAN&gt;"E00001"&lt;/SPAN&gt;:&lt;BR /&gt;                            &lt;SPAN&gt;c&lt;/SPAN&gt;.&lt;SPAN&gt;messages&lt;/SPAN&gt;.&lt;SPAN&gt;message&lt;/SPAN&gt;[&lt;SPAN&gt;d&lt;/SPAN&gt;].&lt;SPAN&gt;code &lt;/SPAN&gt;= &lt;SPAN&gt;"E_WC_19"&lt;/SPAN&gt;;&lt;BR /&gt;                            &lt;SPAN&gt;break&lt;/SPAN&gt;;&lt;BR /&gt;                        &lt;SPAN&gt;case &lt;/SPAN&gt;&lt;SPAN&gt;"E00003"&lt;/SPAN&gt;:&lt;BR /&gt;                            &lt;SPAN&gt;c&lt;/SPAN&gt;.&lt;SPAN&gt;messages&lt;/SPAN&gt;.&lt;SPAN&gt;message&lt;/SPAN&gt;[&lt;SPAN&gt;d&lt;/SPAN&gt;].&lt;SPAN&gt;code &lt;/SPAN&gt;= &lt;SPAN&gt;"E_WC_20"&lt;/SPAN&gt;;&lt;BR /&gt;                            &lt;SPAN&gt;break&lt;/SPAN&gt;;&lt;BR /&gt;                        &lt;SPAN&gt;case &lt;/SPAN&gt;&lt;SPAN&gt;"E00007"&lt;/SPAN&gt;:&lt;BR /&gt;                            &lt;SPAN&gt;c&lt;/SPAN&gt;.&lt;SPAN&gt;messages&lt;/SPAN&gt;.&lt;SPAN&gt;message&lt;/SPAN&gt;[&lt;SPAN&gt;d&lt;/SPAN&gt;].&lt;SPAN&gt;code &lt;/SPAN&gt;= &lt;SPAN&gt;"E_WC_21"&lt;/SPAN&gt;;&lt;BR /&gt;                            &lt;SPAN&gt;break&lt;/SPAN&gt;;&lt;BR /&gt;                        &lt;SPAN&gt;case &lt;/SPAN&gt;&lt;SPAN&gt;"E00059"&lt;/SPAN&gt;:&lt;BR /&gt;                            &lt;SPAN&gt;c&lt;/SPAN&gt;.&lt;SPAN&gt;messages&lt;/SPAN&gt;.&lt;SPAN&gt;message&lt;/SPAN&gt;[&lt;SPAN&gt;d&lt;/SPAN&gt;].&lt;SPAN&gt;code &lt;/SPAN&gt;= &lt;SPAN&gt;"E_WC_22"&lt;/SPAN&gt;;&lt;BR /&gt;                            &lt;SPAN&gt;break&lt;/SPAN&gt;;&lt;BR /&gt;                        &lt;SPAN&gt;case &lt;/SPAN&gt;&lt;SPAN&gt;"E00096"&lt;/SPAN&gt;:&lt;BR /&gt;                            &lt;SPAN&gt;c&lt;/SPAN&gt;.&lt;SPAN&gt;messages&lt;/SPAN&gt;.&lt;SPAN&gt;message&lt;/SPAN&gt;[&lt;SPAN&gt;d&lt;/SPAN&gt;].&lt;SPAN&gt;code &lt;/SPAN&gt;= &lt;SPAN&gt;"E_WC_13"&lt;BR /&gt;&lt;/SPAN&gt;                    }&lt;BR /&gt;                }&lt;BR /&gt;            &lt;SPAN&gt;u&lt;/SPAN&gt;(&lt;SPAN&gt;c&lt;/SPAN&gt;, b)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 22:27:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/I-WC-01-overrides-with-E-WC-14/m-p/63966#M37975</guid>
      <dc:creator>svora</dc:creator>
      <dc:date>2018-07-30T22:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: I_WC_01 overrides with E_WC_14</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/I-WC-01-overrides-with-E-WC-14/m-p/64387#M38291</link>
      <description>&lt;P&gt;I'm experiencing the same issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not using ember though.&amp;nbsp; Just a static single page html page with a checkout form.&lt;/P&gt;&lt;P&gt;Linux + Apache + SSL&lt;/P&gt;&lt;P&gt;HTML/CSS/JS (vanilly javascript, no libraries, no frameworks...just some basic javascript.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm in sandbox mode.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I haven't even tried to make the second attempt to authorize.net for payment processing, I'm getting both&amp;nbsp;response messages on a simple accept nonce request.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using your sample code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;script type="text/javascript" src="https://jstest.authorize.net/v1/Accept.js" charset="utf-8"&amp;gt;&amp;lt;/script&amp;gt;

function sendPaymentDataToAnet() {
    console.log('sending payment data to anet');
    var authData = {};
    authData.clientKey = myClientKey;
    authData.apiLoginID = myApiLoginId;

    var cardData = {};
    cardData.cardNumber = document.getElementById("cardNumber").value;
    cardData.month = document.getElementById("expMonth").value;
    cardData.year = document.getElementById("expYear").value;
    cardData.cardCode = document.getElementById("cardCode").value;

    var secureData = {};
    secureData.authData = authData;
    secureData.cardData = cardData;

    Accept.dispatchData(secureData, responseHandler);

    function responseHandler(response) {
        console.log('response received');
        console.log('response messages: ', response.messages);
        if (response.messages.resultCode === "Error") {
            var i = 0;
            while (i &amp;lt; response.messages.message.length) {
                console.log(
                    response.messages.message[i].code + ": " +
                    response.messages.message[i].text
                );
                i = i + 1;
            }
        } else {
            paymentFormUpdate(response.opaqueData);
            console.log('looks like we are good');
            console.log('response.opaqueData: ', response.opaqueData);
            console.log('response.messages: ', resposne.messages);
        }
    }
}


function paymentFormUpdate(opaqueData) {
    document.getElementById("dataDescriptor").value = opaqueData.dataDescriptor;
    document.getElementById("dataValue").value = opaqueData.dataValue;

    document.getElementById("cardNumber").value = "";
    document.getElementById("expMonth").value = "";
    document.getElementById("expYear").value = "";
    document.getElementById("cardCode").value = "";
    document.getElementById("accountNumber").value = "";
    document.getElementById("routingNumber").value = "";
    document.getElementById("nameOnAccount").value = "";
    document.getElementById("accountType").value = "";

    document.getElementById("paymentForm").submit();
}&lt;/PRE&gt;&lt;P&gt;Now here's the kicker.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you compare my code above to the console log image attached, you'll see that my first log is 'sending payment data to anet'.&amp;nbsp; After that is where things get weird.&amp;nbsp; You'll see another log of 'response received', which is set to fire when my responseHandler fires.&amp;nbsp; Afterwards, you'll see a log of my success message, as I have that logged immediately after...makes sense, right?&amp;nbsp; But wait, you can see another log of 'response received' and another log of 'response message' only the second 'response message' is followed by the famous E_WC_14 error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the question is...why is my response handler firing twice?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Side note: I tried to attach an image to this post, but it fails when I select 'Post' for my comment.&amp;nbsp; The image shows in the preview, but it fails to post and kills my image.&amp;nbsp; That said here's a link to my console log screenshot:&amp;nbsp;&lt;A href="https://image.ibb.co/b0LVnz/accept_js_response_issue.png" target="_blank"&gt;https://image.ibb.co/b0LVnz/accept_js_response_issue.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help on this would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 06:59:24 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/I-WC-01-overrides-with-E-WC-14/m-p/64387#M38291</guid>
      <dc:creator>hubzealkev88</dc:creator>
      <dc:date>2018-09-06T06:59:24Z</dc:date>
    </item>
  </channel>
</rss>

