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);
}
01-10-2018 08:48 AM
Your Implementation looks good to me,
can you check your console also if its printing anything there?
Thanks,
01-10-2018 10:42 AM
It says:
Accept.js is not loaded correctly
01-10-2018 12:30 PM
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?
Urgent reply from Administrator please!
It is indeed a shame that a famous US payment gateway / processor having such issues on API integration.
01-10-2018 01:10 PM
01-10-2018 11:22 PM
We also have quite some compaints of E_WC_03 error.
Hope to get help from admin.
Thanks
01-18-2019 09:27 AM