cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Woocommerce Error in processing payments

Hi,

 

I'm trying to install the plugin for woocommerce on my site and it does not seem to be processing the payment.  I'm getting the following error message.  ANY help would be much appreciated. RESPONSE CODE at the bottom.

 

  • Code: E00003, Message: The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:transactionKey' element is invalid - The value XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX is invalid according to its datatype 'String' - The actual length is greater than the MaxLength value.

Request
method: POST
uri: https://api2.authorize.net/xml/v1/request.api
user-agent: WooCommerce-Authorize.Net-AIM-Gateway/3.14.3 (WooCommerce/3.4.5; WordPress/4.9.8)
headers: Array
(
[content-type] => application/xml
[accept] => application/xml
)
body: <?xml version="1.0" encoding="UTF-8"?>
<createTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>*********</name>
<transactionKey>********************************************************************************************************************************</transactionKey>
</merchantAuthentication>
<refId>2907</refId>
<transactionRequest>
<transactionType>authCaptureTransaction</transactionType>
<amount>0.01</amount>
<currencyCode>USD</currencyCode>
<payment>
<opaqueData>
<dataDescriptor>COMMON.ACCEPT.INAPP.PAYMENT</dataDescriptor>
<dataValue>**********</dataValue>
</opaqueData>
</payment>
<solution>
<id>A1000065</id>
</solution>

 

..........................................................................................................................................

Response
code: 200
message: OK
headers: Array
(
[cache-control] => private
[content-type] => application/xml; charset=utf-8
[access-control-allow-origin] => *
[access-control-allow-headers] => x-requested-with,cache-control,content-type,origin,method,SOAPAction
[access-control-allow-credentials] => true
[access-control-allow-methods] => PUT,OPTIONS,POST,GET
[x-cnection] => close
[content-length] => 576
[date] => Mon, 17 Sep 2018 19:39:46 GMT
)
body: <?xml version="1.0" encoding="utf-8"?>
<ErrorResponse>
<messages>
<resultCode>Error</resultCode>
<message>
<code>E00003</code>
<text>The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:transactionKey' element is invalid - The value XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX is invalid according to its datatype 'String' - The actual length is greater than the MaxLength value.</text>
</message>
</messages>
</ErrorResponse>

maimedical
Member
1 REPLY 1

transactionKey element length is restricted to 16 characters and enforced by XSD validation. Pl. ensure the length of transaction key you have meets this requirement and you are using the correct transaction key.

ramittal
Authorize.Net Developer Authorize.Net Developer
Authorize.Net Developer