<?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: E_WC_21: User authentication failed due to invalid authentication values in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/E-WC-21-User-authentication-failed-due-to-invalid-authentication/m-p/62057#M36441</link>
    <description>&lt;P&gt;It's always the obvious.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had changed from&amp;nbsp;SANDBOX to PRODUCTION in backend code but not in the javascript&amp;amp;colon;&lt;/P&gt;&lt;PRE&gt;if ( MY_ENV=='dev' )
{
    //&amp;lt;!-- For Sandbox/Testing, use: --&amp;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;"
} else {   
    //&amp;lt;!-- For Production, use: --&amp;gt;
    &amp;lt;script type="text/javascript" src="https://js.authorize.net/v1/Accept.js" charset="utf-8"&amp;gt;&amp;lt;/script&amp;gt;    
}&lt;/PRE&gt;</description>
    <pubDate>Fri, 09 Mar 2018 20:26:00 GMT</pubDate>
    <dc:creator>sudwebdesign77</dc:creator>
    <dc:date>2018-03-09T20:26:00Z</dc:date>
    <item>
      <title>E_WC_21: User authentication failed due to invalid authentication values</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/E-WC-21-User-authentication-failed-due-to-invalid-authentication/m-p/62055#M36439</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i know you probably get this question all the time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've checked through previous posts and have regenerated both client key and transaction key.&amp;nbsp; I'm using the AcceptsJS so the transaction key is irrelevant anyway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has been working fine in sandbox and I've just pushed it into live, changed the settings to PRODUCTION and the authentication values are picked up from the database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now I get the error:&amp;nbsp;E_WC_21: User authentication failed due to invalid authentication values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stepping through the code, it is when trying to get the TOKEN.&amp;nbsp; My code is pretty much a copy of the supplied code except wrapped into a container class as I may have more than AcceptJS call in the window - as follows:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var ANAJSManagerGY1Z = new function() {


... code to setup the cardData here

secureData.cardData = cardData;

// The Authorize.Net Client Key is used in place of the traditional Transaction Key. The Transaction Key
// is a shared secret and must never be exposed. The Client Key is a public key suitable for use where
// someone outside the merchant might see it.
authData.clientKey = "******************";
authData.apiLoginID = "*******";
// debugger;
secureData.authData = authData;

// Pass the card number and expiration date to Accept.js for submission to Authorize.Net.
Accept.dispatchData(secureData, ANAJSManagerGY1Z.responseHandler);
}
}
// Process the response from Authorize.Net to retrieve the two elements of the payment nonce.
// If the data looks correct, record the OpaqueData to the console and call the transaction processing function.
this.responseHandler = function(response) {
var message = '';

... handler code

}&lt;/PRE&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 19:59:47 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/E-WC-21-User-authentication-failed-due-to-invalid-authentication/m-p/62055#M36439</guid>
      <dc:creator>sudwebdesign77</dc:creator>
      <dc:date>2018-03-09T19:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: E_WC_21: User authentication failed due to invalid authentication values</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/E-WC-21-User-authentication-failed-due-to-invalid-authentication/m-p/62057#M36441</link>
      <description>&lt;P&gt;It's always the obvious.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had changed from&amp;nbsp;SANDBOX to PRODUCTION in backend code but not in the javascript&amp;amp;colon;&lt;/P&gt;&lt;PRE&gt;if ( MY_ENV=='dev' )
{
    //&amp;lt;!-- For Sandbox/Testing, use: --&amp;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;"
} else {   
    //&amp;lt;!-- For Production, use: --&amp;gt;
    &amp;lt;script type="text/javascript" src="https://js.authorize.net/v1/Accept.js" charset="utf-8"&amp;gt;&amp;lt;/script&amp;gt;    
}&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Mar 2018 20:26:00 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/E-WC-21-User-authentication-failed-due-to-invalid-authentication/m-p/62057#M36441</guid>
      <dc:creator>sudwebdesign77</dc:creator>
      <dc:date>2018-03-09T20:26:00Z</dc:date>
    </item>
  </channel>
</rss>

