Hello
what this error means (E_WC_14:Accept.js encryption failed) and how to solve it?
Thank you
08-21-2016 12:06 AM - edited 08-21-2016 12:08 AM
Anybody, please?
08-21-2016 10:36 PM
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
08-22-2016 07:35 AM
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?
08-22-2016 09:33 AM
Does anybody know anything about that error?
Is there any other way to get official support?
Thank you.
08-23-2016 04:37 AM
08-23-2016 10:03 AM
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.
08-23-2016 10:09 AM
Hi,
I am also facing the same issue - have you managed to find the cause ?
Thanks
08-28-2016 09:53 PM
No I have not.
I'm wondering is there any official support who can explain why that error happens?
Thank you.
08-28-2016 11:16 PM
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.
08-29-2016 01:18 AM