cancel
Showing results for 
Search instead for 
Did you mean: 

Who Me Too'd this topic

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
Who Me Too'd this topic