cancel
Showing results for 
Search instead for 
Did you mean: 

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

Hello

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

Thank you

zamiksica123
Contributor
42 REPLIES 42

Anybody, please?

zamiksica123
Contributor

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

Joy
Administrator Administrator
Administrator

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?

Does anybody know anything about that error?

Is there any other way to get official support?

Thank you.

@zamiksica123

 

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

 

Richard

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.

Hi,

 

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

 

Thanks

andronachev2016
Contributor

No I have not.

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

Thank you.

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.