I'm setting up a new service to handle payments (replacing an old one) with authorize.net. Using the examples posted on their github page I'm getting a strange error back.
{"messages":{"resultCode":"Error","message":[{"code":"E00001","text":"Error reading JToken from JsonReader. Path '', line 0, position 0."}]}}
I attempted to check my TLS version and got back TLS v1.3. Due to this I thought it was due to having to new of a TLS version so forced the TLS version on Apache to TLS 1.2 for the site and even forced TLS 1.2 in CURL in both requests.
curl_setopt($ch, CURLOPT_SSLVERSION, 6);
These both did not work. I'm unsure how to move forward on this and would appreciate any advice any of you can give.
โ09-24-2023 03:55 PM
I encountered a bug when mixing the GitHub docs with those posted here:
https://developer.authorize.net/api/reference/features/payment-transactions.html
https://developer.authorize.net/api/reference/features/customer-profiles.html
If you have a sandbox account, you can provide your credentials to the virtual terminal, which will pre-populate the JSON examples for you, using your credentials.
โ09-25-2023 07:33 PM