Reply
Highlighted
Member
Posts: 4
Registered: ‎01-06-2020

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?

Highlighted
Member
Posts: 4
Registered: ‎01-06-2020

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

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.

 

 

Highlighted
Member
Posts: 4
Registered: ‎01-06-2020

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

I found a solution. It is called Stripe.

 

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