- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Constantly receiving 200 error messages fron conneting my Sandbox to WooCommerce
I've been attempting to connect a new store I'm developing in WooCommerce to my Sandbox account. I've got my Sandbox set to LIVE instead of TEST and I've set both my Woo settings to both Test as well as Production with the proper login ID and API keys. I've changed both my keys many, many times to no effect.
When I try to checkout, I always receive a 200 error that the order didn't complete.
When I get to the checkout, I get the following errors:
method: POST
uri: https://api2.authorize.net/xml/v1/request.api
user-agent: WooCommerce-Authorize.Net-Gateway/3.0.3 (WooCommerce/3.6.4; WordPress/5.2.1)
headers: Array
(
[content-type] => application/xml
[accept] => application/xml
)
body: <?xml version="1.0" encoding="UTF-8"?>
<getMerchantDetailsRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>********</name>
<transactionKey>****************</transactionKey>
</merchantAuthentication>
</getMerchantDetailsRequest>
duration: 0.77377s
code: 200
message: OK
headers: Array
(
[cache-control] => no-store
[pragma] => no-cache
[content-type] => application/xml; charset=utf-8
[x-opnet-transaction-trace] => a2_a4b557e9-8242-42a7-9c8d-7ba0d1b5aaec-22356-3177605
[access-control-allow-credentials] => true
[access-control-allow-headers] => x-requested-with,cache-control,content-type,origin,method,SOAPAction
[access-control-allow-methods] => PUT,OPTIONS,POST,GET
[access-control-allow-origin] => *
[strict-transport-security] => max-age=31536000
[x-cnection] => close
[content-length] => 411
[date] => Mon, 10 Jun 2019 21:39:35 GMT
)
body: <?xml version="1.0" encoding="utf-8"?>
<getMerchantDetailsResponse>
<messages>
<resultCode>Error</resultCode>
<message>
<code>E00007</code>
<text>User authentication failed due to invalid authentication values.</text>
</message>
</messages>
</getMerchantDetailsResponse>
method: POST
uri: https://api2.authorize.net/xml/v1/request.api
user-agent: WooCommerce-Authorize.Net-Gateway/3.0.3 (WooCommerce/3.6.4; WordPress/5.2.1)
headers: Array
(
[content-type] => application/xml
[accept] => application/xml
)
body: <?xml version="1.0" encoding="UTF-8"?>
<getMerchantDetailsRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>********</name>
<transactionKey>****************</transactionKey>
</merchantAuthentication>
</getMerchantDetailsRequest>
duration: 0.32984s
code: 200
message: OK
headers: Array
(
[cache-control] => no-store
[pragma] => no-cache
[content-type] => application/xml; charset=utf-8
[x-opnet-transaction-trace] => a2_5c8778b3-4047-4085-93a5-a0f9773a5612-28052-3180044
[access-control-allow-credentials] => true
[access-control-allow-headers] => x-requested-with,cache-control,content-type,origin,method,SOAPAction
[access-control-allow-methods] => PUT,OPTIONS,POST,GET
[access-control-allow-origin] => *
[strict-transport-security] => max-age=31536000
[x-cnection] => close
[content-length] => 411
[date] => Mon, 10 Jun 2019 21:39:35 GMT
)
body: <?xml version="1.0" encoding="utf-8"?>
<getMerchantDetailsResponse>
<messages>
<resultCode>Error</resultCode>
<message>
<code>E00007</code>
<text>User authentication failed due to invalid authentication values.</text>
</message>
</messages>
</getMerchantDetailsResponse>
method: POST
uri: https://api2.authorize.net/xml/v1/request.api
user-agent: WooCommerce-Authorize.Net-Gateway/3.0.3 (WooCommerce/3.6.4; WordPress/5.2.1)
headers: Array
(
[content-type] => application/xml
[accept] => application/xml
)
body: <?xml version="1.0" encoding="UTF-8"?>
<getMerchantDetailsRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>********</name>
<transactionKey>****************</transactionKey>
</merchantAuthentication>
</getMerchantDetailsRequest>
duration: 0.49695s
code: 200
message: OK
headers: Array
(
[cache-control] => no-store
[pragma] => no-cache
[content-type] => application/xml; charset=utf-8
[access-control-allow-credentials] => true
[access-control-allow-headers] => x-requested-with,cache-control,content-type,origin,method,SOAPAction
[access-control-allow-methods] => PUT,OPTIONS,POST,GET
[access-control-allow-origin] => *
[strict-transport-security] => max-age=31536000
[x-cnection] => close
[content-length] => 411
[date] => Mon, 10 Jun 2019 21:39:38 GMT
)
body: <?xml version="1.0" encoding="utf-8"?>
<getMerchantDetailsResponse>
<messages>
<resultCode>Error</resultCode>
<message>
<code>E00007</code>
<text>User authentication failed due to invalid authentication values.</text>
</message>
</messages>
</getMerchantDetailsResponse>
06-10-2019 02:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @databell96
The actual error within the response body is what you should use:
<code>E00007</code>
<text>User authentication failed due to invalid authentication values.</text>
https://developer.authorize.net/api/reference/responseCodes.html?code=E00007
Richard
06-11-2019 10:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
as invalid. No matter what. This makes no sense.
I know what is happening but what I need to know is what can be done to fix it.
And again, no matter how many times I reset it, it doesn’t take.
06-11-2019 10:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please note that our Sandbox and Production systems are completely separate and you cannot use credentials from one system with the other.
Let me suggest trying the following:
- Log into the sandbox at https://sandbox.authorize.net and reset your credentials
- Then go to the try it tab in the API Reference and add your new credentials
- Confirm you can submit a transaction
- Then move to your system, configure WooCommerce for our sandbox and use credentials.
If this works, then you simply need new production credentials and follow similar steps.
Richard
06-11-2019 11:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The Try It tab? I'm in the reference page and I don't see a Try It tab anywhere. I did reset my password though.
06-11-2019 01:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry about that, been a while since I've used the console.
Use the API Live Console
https://developer.authorize.net/api/reference/#payment-transactions-charge-a-credit-card
Richard
06-11-2019 05:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have no idea how to use that.
06-12-2019 09:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK, I think I know what to do. I went to the Charge a Credit Card section. In the API Live Console, I substituted my Login ID in the name area and the Transaction Key in that spot. Clicked SEND and I got a response back of "This Transaction has been approved".
So I'm guessing it's not authorize.net but rather my server?
06-12-2019 09:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you checked to see if your hashed signature has anything to do with this? The invalid authentication values could be tied to that.
06-12-2019 11:17 PM - edited 06-12-2019 11:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I wouldn't even know where to start with that.
06-13-2019 03:24 AM