cancel
Showing results for 
Search instead for 
Did you mean: 

Cardholder Authentication extraOptions invalid error

Hi,

 

I've enabled cardholder authentication (verified by visa and mastercard securecode) in the sandbox account. But whenever I send a auth_charge transaction it gave me error:

 

<?xml version="1.0" encoding="utf-8"?>
<createCustomerProfileTransactionResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
  <messages>
    <resultCode>Error</resultCode>
    <message>
      <code>E00013</code>
      <text>Extra Options is invalid.</text>
    </message>
  </messages>
</createCustomerProfileTransactionResponse>

Below is the request I sent with 

 

<?xml version="1.0" encoding="utf-8"?>
<createCustomerProfileTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
  <merchantAuthentication>
    <name>xxxxxxxx</name>
    <transactionKey>xxxxxxxxx</transactionKey>
  </merchantAuthentication>
  <transaction>
    <profileTransAuthCapture>
      <amount>103.5</amount>
      <customerProfileId>1811759686</customerProfileId>
      <customerPaymentProfileId>1806278386</customerPaymentProfileId>
      <order>
        <invoiceNumber>117</invoiceNumber>
        <description>T117</description>
      </order>
    </profileTransAuthCapture>
  </transaction>
  <extraOptions>x_authentication_indicator=05&amp;x_cardholder_authentication_value=AAABAWFlmQAAAABjRWWZEEFgFz+=</extraOptions>
</createCustomerProfileTransactionRequest>

Can anyone please help?

 

Thanks,

Tim

1 ACCEPTED SOLUTION

Accepted Solutions

The CAVV is invalid or contains an invalid character.

Also, this error can occur if a non-alphanumeric character is included in the cardholder authentication value. To resolve this issue, the special character must be percent-encoded. More on percent-encoding may be found at http://en.wikipedia.org/wiki/Percent-encoding.

Powered by NexWebSites.com -
Certified Authorize.net developers

View solution in original post

10 REPLIES 10

Try wrapping the extraOption element data value in a CDATA (character data) section  : <![CDATA[   ]]> , like:

<extraOptions><!CDATA[x_authentication_indicator=05&amp;x_cardholder_authentication_value=AAABAWFlmQAAAABjRWWZEEFgFz+=1]]>
</extraOptions>

 

Powered by NexWebSites.com -
Certified Authorize.net developers
NexusSoftware
Trusted Contributor

I've tried adding that but still got the same error:

 

<extraOptions>
<![CDATA[x_authentication_indicator=05&amp;x_cardholder_authentication_value=AAABAWFlmQAAAABjRWWZEEFgFz+=]]>
</extraOptions>

You're missing the final 1 before the closing ]]>.

Powered by NexWebSites.com -
Certified Authorize.net developers

Also try x_authentication_indicator=5 instead of 05

Powered by NexWebSites.com -
Certified Authorize.net developers

Disregard that ... I added the extra 1 by mistake.

Powered by NexWebSites.com -
Certified Authorize.net developers

By the way, the trailing 

=

at the end of the x_cardholder_authentication_value will throw an "Extra Options is invalid." error every time. 

 

Powered by NexWebSites.com -
Certified Authorize.net developers

The "=" in the end is part of the cavv I received from the 3rd party consumer authentication service provider.

 

I've also tried with "5" instead of "05" but still got same error.

 

I wonder has anyone actually got this working with Auth.NET sandbox?

 

 

<?xml version="1.0" encoding="utf-8"?>
<createCustomerProfileTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"> 
<merchantAuthentication> 
<name>7xxxx</name> 
<transactionKey>xxxxxx</transactionKey> 
</merchantAuthentication> 
<transaction> 
<profileTransAuthCapture> 
<amount>103.5</amount> 
<customerProfileId>1811794425</customerProfileId> 
<customerPaymentProfileId>1806314300</customerPaymentProfileId> 
<order> 
<invoiceNumber>122</invoiceNumber> 
<description>T122</description> 
</order> 
</profileTransAuthCapture> 
</transaction> 
<extraOptions><![CDATA[x_authentication_indicator=5&x_cardholder_authentication_value=AAABAWFlmQAAAABjRWWZEEFgFz+=]]></extraOptions> 
</createCustomerProfileTransactionRequest>

Can anyone from Auth.NET also shed some lights here?

 

 

Thanks

The CAVV is invalid or contains an invalid character.

Also, this error can occur if a non-alphanumeric character is included in the cardholder authentication value. To resolve this issue, the special character must be percent-encoded. More on percent-encoding may be found at http://en.wikipedia.org/wiki/Percent-encoding.

Powered by NexWebSites.com -
Certified Authorize.net developers

Hi,

 

Thanks. I URL encoded the CAVV value and it is now working! In the sandbox. Great.

 

 

Cheers