cancel
Showing results for 
Search instead for 
Did you mean: 

Accept.js - request.api is called twice / returns nonce + error

Hello-

Thank you in advance for any assistance.

 

I am using Accept.js to capture card data.

 

In the dev console I can see "AcceptCore.js" is called on page load.

 

When I take action (click submit), I can see in the console that two calls are made to:

https://api2.authorize.net/xml/v1/request.api

 

The first returns an error:

 

{"code":"E00001","text":"Error reading JToken from JsonReader. Path '', line 0, position 0."}

 

The second returns success:

{"opaqueData":{"dataDescriptor":"COMMON.ACCEPT.INAPP.PAYMENT","dataValue":"XdyJj...Si9"},"messages":{"resultCode":"Ok","message":[{"code":"I00001","text":"Successful."}]}}

 

Anyone else have this happen?

bhemesath
Member
2 REPLIES 2

Update:

 

(I am still having the problem)

 

I grabbed the sample code from Authorize.net, line-for-line, and put it on our server.

 

I still get the error:

{"resultCode":"Error","message":[{"code":"E00001","text":"Error reading JToken from JsonReader. Path '', line 0, position 0."}

 

In live mode, I still get the error, but the second post (which does return the opaqueData array) fires this error:

console: E_WC_14: Accept.js encryption failed.

 

 

bhemesath
Member

I found a solution. It is called Stripe.

 

I am so disappointed with you, Authorize.net We're moving our entire payment processing business.

bhemesath
Member