cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to integrate Accept.js. But get E_WC_03

I am doing an integration with our own custom payment form. I have followed all the steps to include the library, for both sandbox and live, however in either of them I keep getting this response after executing

 

Accept.dispatchData(secureData, responseHandler)

Response:

 

{"messages":{"resultCode":"Error","message":[{"code":"E_WC_03","text":"Accept.js is not loaded correctly"}]}}

 

 

I'm using the correct API Login ID and Public Client Key, and included this library:

 

<script type="text/javascript"
src="https://jstest.authorize.net/v1/Accept.js"
charset="utf-8">
</script>

 

 

I get the same error when testing with the apropriate Live credentials and library.

 

What could be wrong? 

 

For reference, I'm using this function implementation:

 

function sendPaymentDataToAnet() {
var authData = {};
authData.clientKey = "{{ env('AUTHORIZE_CLIENT_KEY') }}";
authData.apiLoginID = "{{ env('AUTHORIZE_API_KEY') }}";

var cardData = {};
cardData.cardNumber = '{{ $cc_number }}';
cardData.month = '{{ $expmonth }}';
cardData.year = '{{ $expyear }}';
cardData.cardCode = '{{ $cvc }}';

var secureData = {};
secureData.authData = authData;
secureData.cardData = cardData;

Accept.dispatchData(secureData, responseHandler);
}

 

angel
Member
5 REPLIES 5

Your Implementation looks good to me,

can you check your console also if its printing anything there?

 

Thanks,

 

 

 

 

Shoagraw
Authorize.Net Developer Authorize.Net Developer
Authorize.Net Developer

It says:

 

Accept.js is not loaded correctly

Is this because of Authorize.net CDN issue?

There are many merchants (their developers) having the same issue.

We can't even proceed further because the initial request can't be made

This must be Authorize.net issue.

 

I am asking to the Administrator of this community. What is the issue?

 

 

seocim
Member

Hi @seocim @Shoagraw

 

We are not aware of any such issues with Accept.js currently . 


if you are still facing the issue please reach out to the support team 1.877.447.3938 to open a support ticket for it . 





Send feedback at developer_feedback@authorize.net

We also have quite some compaints of E_WC_03 error. 

Hope to get help from admin.

Thanks