Reply
Highlighted
Member
Posts: 2
Registered: ‎11-01-2017

Problem Using Accept.js

[ Edited ]

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?

Highlighted
Member
Posts: 2
Registered: ‎11-01-2017

Re: Problem Using Accept.js

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.

 

 

Highlighted
Member
Posts: 2
Registered: ‎10-12-2018

Re: Problem Using Accept.js

[ Edited ]

@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!

Highlighted
Member
Posts: 4
Registered: ‎12-22-2018

Re: Problem Using Accept.js

Oh ffs, 2 hours lost here too.

 

And it's still not updated!!

Highlighted
Member
Posts: 4
Registered: ‎12-22-2018

Re: Problem Using Accept.js

Oh ffs, 2 hours lost here too.

 

And it's still not updated!!

Highlighted
Member
Posts: 1
Registered: ‎12-24-2018

Re: Problem Using Accept.js

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