Reply
Contributor
Posts: 27
Registered: ‎08-19-2016

Accept.js error E_WC_14:Accept.js encryption failed.

[ Edited ]

Hello

what this error means (E_WC_14:Accept.js encryption failed) and how to solve it?

Thank you

Contributor
Posts: 27
Registered: ‎08-19-2016

Re: Accept.js error E_WC_14:Accept.js encryption failed.

Anybody, please?

Administrator Administrator
Administrator
Posts: 552
Registered: ‎08-03-2011

Re: Accept.js error E_WC_14:Accept.js encryption failed.

Hi zamiksica123,

 

Can you please do this and let me know if this solves the error you are getting:

 

Replace:

 

function  responseHandler(response) {

                if (response.messages.resultCode === 'Error') {

                                for (var i = 0; i < response.messages.message.length; i++) {

                                                console.log(response.messages.message[i].code + ':' + response.messages.message[i].text);

                                }

                                alert('acceptJS library error!');

                } else {

                                postBackToMyServer(response.opaqueData);

                }

}

 

function postBackToMyServer(response) {

//send nonce to form

document.getElementById('nonce').value = response;

 

alert(response);

 

//post form

//document.payform.submit();

 

//get response nonce - pass it to ASP, use ASP to charge the card by passing NONCE instead of card details at that point

 

}

 

 

WITH THIS:

 

function responseHandler(response) {

    if (response.messages.resultCode === 'Error') {

        for (var i = 0; i < response.messages.message.length; i++) {

            console.log(response.messages.message[i].code + ':' + response.messages.message[i].text);

            $("#blob").val(response.messages.message[i].code + ':' + response.messages.message[i].text);

        }

    } else {

        useOpaqueData(response.opaqueData)

    }

}

 

function useOpaqueData(responseData) {

    console.log(responseData.dataDescriptor);

    console.log(responseData.dataValue);

    alert(responseData.dataValue);

}

 

Thanks,

Joy

Contributor
Posts: 27
Registered: ‎08-19-2016

Re: Accept.js error E_WC_14:Accept.js encryption failed.

Hello Joy

I'm already using that code (using it from here: http://developer.authorize.net/api/reference/features/acceptjs.html)

Today I don't see error message ("E_WC_14:Accept.js encryption failed") any more...

I have not changed anything so I'm not sure what was the problem.

Any idea?

Contributor
Posts: 27
Registered: ‎08-19-2016

Re: Accept.js error E_WC_14:Accept.js encryption failed.

Does anybody know anything about that error?

Is there any other way to get official support?

Thank you.

Posts: 2,165
Topics: 50
Kudos: 140
Blog Posts: 64
Registered: ‎12-05-2011

Re: Accept.js error E_WC_14:Accept.js encryption failed.

@zamiksica123

 

You mentioned that you no longer see the error.  Has it returned?

 

Richard

--------

Webhooks are now available for Authorize.Net

Using SOAP, see our deprecation notice.
Check out Accept.js, our Javascript replacement for DPM.
Pro Tip: Never use test mode in the sandbox, instead use the Testing Guide.
Contributor
Posts: 27
Registered: ‎08-19-2016

Re: Accept.js error E_WC_14:Accept.js encryption failed.

No, I don't see it any more.

It was OK for day or two and then I saw the error for few hours.

After that, It works normal.

What should I do if I see the error again?

I mean, it bust be some reason for it?

Thank you.

Contributor
Posts: 12
Registered: ‎08-28-2016

Re: Accept.js error E_WC_14:Accept.js encryption failed.

Hi,

 

I am also facing the same issue - have you managed to find the cause ? 

 

Thanks

Contributor
Posts: 27
Registered: ‎08-19-2016

Re: Accept.js error E_WC_14:Accept.js encryption failed.

No I have not.

I'm wondering is there any official support who can explain why that error happens?

Thank you.

Member
Posts: 2
Registered: ‎08-29-2016

Re: Accept.js error E_WC_14:Accept.js encryption failed.

Having the same issue. 

 

Also getting

XMLHttpRequest cannot load https://jstest.authorize.net/v1/AcceptCore.js. No 'Access-Control-Allow-Origin' header is present on the requested resource.