Reply
Contributor
Posts: 20
Registered: ‎02-24-2017

Re: Authorization using AcceptJS nonce causing OTS Service Error

[ Edited ]

Yep.

 

http://developer.authorize.net/api/reference/#payment-transactions-authorize-a-credit-card

 

 

I just generated a new payment nonce using our sandbox login id 5JNKx9n3F and client key 26QzsnrpZT2kGQA9y9P9vgb5FSB6Rx9PdyCK53gAEPrKt4834vPB5zHrJhu44sSu.

 

The request I sent was:

 

 

<createTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
  <merchantAuthentication>
    <name>5JNKx9n3F</name>
    <transactionKey>*****</transactionKey>
  </merchantAuthentication>
  <refId>123456</refId>
  <transactionRequest>
    <transactionType>authOnlyTransaction</transactionType>
    <amount>5</amount>
    <payment>
      <opaqueData>
        <dataDescriptor>COMMON.ACCEPT.INAPP.PAYMENT</dataDescriptor>
        <dataValue>eyJ0b2tlbiI6Ijk0ODgyMTI0NTczNjUwNTQ0MDQ2MDQiLCJ2IjoiMS4xIn0</dataValue >
      </opaqueData>
    </payment>
    <order>
      <invoiceNumber>INV-12345</invoiceNumber>
      <description>Product Description</description>
    </order>
    <lineItems>
      <lineItem>
        <itemId>1</itemId>
        <name>vase</name>
        <description>Cannes logo </description>
        <quantity>18</quantity>
        <unitPrice>45.00</unitPrice>
      </lineItem>
    </lineItems>
    <tax>
      <amount>4.26</amount>
      <name>level2 tax name</name>
      <description>level2 tax</description>
    </tax>
    <duty>
      <amount>8.55</amount>
      <name>duty name</name>
      <description>duty description</description>
    </duty>
    <shipping>
      <amount>4.26</amount>
      <name>level2 tax name</name>
      <description>level2 tax</description>
    </shipping>
    <poNumber>456654</poNumber>
    <billTo>
      <firstName>Ellen</firstName>
      <lastName>Johnson</lastName>
      <company>Souveniropolis</company>
      <address>
      14 Main Street
      </address>
      <city>Pecan Springs</city>
      <state>TX</state>
      <zip>44628</zip>
      <country>USA</country>
    </billTo>
    <shipTo>
      <firstName>China</firstName>
      <lastName>Bayles</lastName>
      <company>Thyme for Tea</company>
      <address>
      12 Main Street
      </address>
      <city>Pecan Springs</city>
      <state>TX</state>
      <zip>44628</zip>
      <country>USA</country>
    </shipTo>
    <customerIP>192.168.1.1</customerIP>
    <!-- Uncomment this section for Card Present Sandbox Accounts --> 
    <!-- <retail><marketType>2</marketType><deviceType>1</deviceType></retail> -->
    <transactionSettings>
      <setting>
        <settingName>testRequest</settingName>
        <settingValue>false</settingValue>
      </setting>
    </transactionSettings>
    <userFields>
      <userField>
        <name>MerchantDefinedFieldName1</name>
        <value>MerchantDefinedFieldValue1</value>
      </userField>
      <userField>
        <name>favorite_color</name>
        <value>blue</value>
      </userField>
    </userFields>
  </transactionRequest>
</createTransactionRequest>

 

The result is:

 

E00117 : OTS Service Error 'Field validation error.' 

Contributor
Posts: 20
Registered: ‎02-24-2017

Re: Authorization using AcceptJS nonce causing OTS Service Error

[ Edited ]

Yes, it's still broken. Using http://developer.authorize.net/api/reference/#payment-transactions-authorize-a-credit-card and I still get the OTS field validation error, although I just generated the nonce and haven't used it anywhere.

 

The (sandbox) login ID I'm using is:

5JNKx9n3F

 

And the public client key is 

26QzsnrpZT2kGQA9y9P9vgb5FSB6Rx9PdyCK53gAEPrKt4834vPB5zHrJhu44sSu

 

The last nonce I generated 

eyJ0b2tlbiI6Ijk0ODgyMTI0NTczNjUwNTQ0MDQ2MDQiLCJ2IjoiMS4xIn0

Solution
Accepted by topic author glyoder
‎02-28-2017 05:21 AM
Contributor
Posts: 20
Registered: ‎02-24-2017

Re: Authorization using AcceptJS nonce causing OTS Service Error

OK, I found the problem, and it's on our side! ☹

 

It's actually Chrome's fault.

 

Basically, I created a html form to generate the payment nonce and display it in a text field. When I double-click the field (select all) and copy, chrome is for some reason leaving off the last character (an "="). So when I use the nonce it then gets rejected because of a missing character. Sorry for the trouble. I don't know why my browser started behaving this way.

Member
Posts: 3
Registered: ‎03-03-2017

Re: Authorization using AcceptJS nonce causing OTS Service Error

My implementation also just stopped working today and I keep getting different reasons. All start with E00117:OTS Service Error. The first time I saw this it said "The OTS Service cannot complete the request due to a validation or configuration error".

 

I added some debugging logs to verify the data I passed to Accept.dispatchData() and now I get "The request was aborted: Could not create SSL/TLS secure channel". I changed nothing, I only logged the secureData to see what I was sending. My browser dev tools tell me that the Accept request's parameters are empty JSON, but my debug log says the object I passed contains the same data that worked fine yesterday.

Posts: 2,319
Topics: 51
Kudos: 157
Blog Posts: 65
Registered: ‎12-05-2011

Re: Authorization using AcceptJS nonce causing OTS Service Error

Hello @kbrockert

 

Is this with your sandbox or production account?

 

Richard

--------

Webhooks are now available for Authorize.Net

Using SOAP, see our deprecation notice.
Check out Accept.js, our Javascript replacement for DPM.
Pro Tip: Never use test mode in the sandbox, instead use the Testing Guide.
Member
Posts: 3
Registered: ‎03-03-2017

Re: Authorization using AcceptJS nonce causing OTS Service Error

This is with my sandbox account, but it looks like we're having issues with the production site as well. I can't seem to figure out why two orders got 200 OK and were marked processing yet they do not show up under unsettled transactions.

Posts: 2,319
Topics: 51
Kudos: 157
Blog Posts: 65
Registered: ‎12-05-2011

Re: Authorization using AcceptJS nonce causing OTS Service Error

Hello @kbrockert

 

For your production account, I would recommend contacting customer support by phone to report the issue.  They can be reached at 877-447-3938.

 

For your sandbox account, we're aware of the issue and I don't yet have the all clear that everything has returned to normal.

 

Richard

--------

Webhooks are now available for Authorize.Net

Using SOAP, see our deprecation notice.
Check out Accept.js, our Javascript replacement for DPM.
Pro Tip: Never use test mode in the sandbox, instead use the Testing Guide.
Member
Posts: 3
Registered: ‎03-03-2017

Re: Authorization using AcceptJS nonce causing OTS Service Error

Thanks, @RichardH. I'll be sure to call the number and subscribe to this thread.

Member
Posts: 1
Registered: ‎03-06-2017

Re: Authorization using AcceptJS nonce causing OTS Service Error

Hello @RichardH,

Is there any update to this error message? We are unable to process any transactions in our sandbox environment and we are starting to get the same error message from our customers who are in production.

Thanks

Member
Posts: 1
Registered: ‎04-14-2017

Re: Authorization using AcceptJS nonce causing OTS Service Error

I'm also getting this error. I tried it with the sandbox account and with the production account and it made no difference as to which one i used. I'm using a secure key locally so it shouldn't be an ssl issue but I'm stuck at this point