cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Using Accept.js

I followed the steps to set up Accept.js here: https://developer.authorize.net/api/reference/features/acceptjs.html 

 

When I do the very first step, which is to verify the credit card data, I get an error: E_WC_10:Please provide valid apiloginid.

 

My api login id and client id are correct.

I've tried using both the regular script and the sandbox script urls.

I have a sandbox account set up. 

 

I just can't understand why it's kicking back that error, when I'm using the proper values. What else should I be checking?

ChrisKC
Member
5 REPLIES 5

Problem solved. Can somebody please update the example code on this page?

https://developer.authorize.net/api/reference/features/acceptjs.html

 

I spent almost two hours researching and troubleshooting in order to figure out that there's a typo in the code.

 

This:

<script type="text/javascript">
function sendPaymentDataToAnet() {
	var authData = {};
		authData.clientKey = "YOUR PUBLIC CLIENT KEY";
		authData.apiLoginId = "YOUR API LOGIN";
}
</script>

Should be this:

<script type="text/javascript">
function sendPaymentDataToAnet() {
	var authData = {};
		authData.clientKey = "YOUR PUBLIC CLIENT KEY";
		authData.apiLoginID = "YOUR API LOGIN";
}
</script>

Notice the difference in authData.apiLoginId vs authData.apiLoginID.

 

 

ChrisKC
Member

@ChrisKC wrote:

I followed the steps to set up Accept.js here: https://developer.authorize.net/api/reference/features/acceptjs.html 

 

When I do the very first step, which is to verify the credit card data, I get an error: E_WC_10:Please provide valid apiloginid.

 

My api login id and client id are correct. prepaid gift balance

I've tried using both the regular script and the sandbox script urls.

I have a sandbox account set up. 

 

I just can't understand why it's kicking back that error, when I'm using the proper values. What else should I be checking?


For me exactly the same ... really annoying!

William093
Member

Oh ffs, 2 hours lost here too.

 

And it's still not updated!!

Oh ffs, 2 hours lost here too.

 

And it's still not updated!!

Hello,

 

We use Authorize.net Accept.js to accept credit card payment. Its working fine in 95% cases but in some cases its not generate dataValue and dataDescriptor and post credit card details to server.


I cannot find excate reason because in 95% cases its working fine and also error not getting in 5% cases.

 

We didn't get any error code because in some case Accept.js not load even when Accept.js internally call AcceptCore.js file not loaded.
 
Suggest me Is there any way to detect if Accept.js and AcceptCore.js loaded or not?
 
Regards
Hiren Shah
hirenshah23
Member