cancel
Showing results for 
Search instead for 
Did you mean: 

limitation in Accept.js?

I have been following the tutorial

 

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

 

let me get to the point

 

The credit card data is sent to authorize.net from the client with this call

Accept.dispatchData(secureData, responseHandler);

Sometimes when the connection to authorize.net server disconnects then this error is thrown

 

net::ERR_INTERNET_DISCONNECTED

 

I have tried all the solutions posted here but none have worked. 

 

https://stackoverflow.com/questions/49484920/how-to-catch-error-of-async-call-in-javascript

 

So i am wondering whether it is possible to catch this error that Accept.dispatchData gets when it cannot connect to the external authorize.net endpoint?

 

I appreciate any help to this dilemma i am facing. 

 

Thanks!

 

kofhearts
Contributor
0 REPLIES 0