Reply
Highlighted
Member
Posts: 5
Registered: ‎02-05-2020

Error E00001 on when creating transaction using AcceptJS data

Hello,

When using Accept.js and then creating a payment transaction we are seeing E00001 on sandbox. We are also using OAuth. Can you please tell what can be going wrong below. How can we get the sandbox to provide more details than a general error?

 

{
  "createTransactionRequest": {
    "merchantAuthentication": {
      "accessToken": "eyJraWQiOi------Y0QHl2RSJLjqtA"
    },
    "clientId": null,
    "transactionRequest": {
      "transactionType": "authCaptureTransaction",
      "amount": 27,
      "payment": {
        "opaqueData": {
          "dataDescriptor": "COMMON.ACCEPT.INAPP.PAYMENT",
          "dataValue": "eyJjb2RlIjoiNTBfMl8wNjAwMDUzQUMzOUIyODg2ODM5MzFFREI1MzNEQUE4RDlBNzgyNkVBNkY0ODhBOTQzMTVFMzlDRjE5
OTVEQzRENzJERDUwMDcxRkI1M0NEOUI3MkVGN0FBOUZBRTZCRkVCOTU4QTI3IiwidG9rZW4iOiI5NTgwOTE5OTc2MjYxNTc1MTA0NjAyIiwidiI6IjEuMSJ9
"
        }
      },
      "order": {
        "invoiceNumber": "3388",
        "description": "Payment for invoice 3388"
      },
      "lineItems": {
        "lineItem": [
          {
            "itemId": "3388",
            "name": "Invoice 3388",
            "description": "Invoice 3388",
            "quantity": 1,
            "unitPrice": 27
          }
        ]
      },
      "billTo": {
        "firstName": "Ellen",
        "lastName": "Johnson",
        "company": "Souveniropolis",
        "address": "14 Main Street",
        "city": "Pecan Springs",
        "state": "TX",
        "zip": "44628",
        "country": "USA"
      },
      "shipTo": {
        "firstName": "China",
        "lastName": "Bayles",
        "company": "Thyme for Tea",
        "address": "12 Main Street",
        "city": "Pecan Springs",
        "state": "TX",
        "zip": "44628",
        "country": "USA"
      },
      "transactionSettings": {
        "setting": [
          {
            "settingName": "duplicateWindow",
            "settingValue": "120"
          },
          {
            "settingName": "recurringBilling",
            "settingValue": "false"
          }
        ]
      },
      "userFields": {
        "userField": [
          {
            "name": "meta_invoice_number",
            "value": "3388"
          },
          {
            "name": "meta_business_id",
            "value": "5cfe"
          },
          {
            "name": "meta_is_manual_capture",
            "value": 0
          }
        ]
      }
    }
  }
}
CreateTransactionController {
  _request:
   { createTransactionRequest:
      CreateTransactionRequest {
        merchantAuthentication: [MerchantAuthenticationType],
        clientId: null,
        transactionRequest: [TransactionRequestType] } },
  _response: null,
  _endpoint: 'https://apitest.authorize.net/xml/v1/request.api' }
{
  "messages": {
    "resultCode": "Error",
    "message": [
      {
        "code": "E00001",
        "text": "An error occurred during processing. Please try again."
      }
    ]
  },
  "transactionResponse": {}
}
Highlighted
Member
Posts: 5
Registered: ‎02-05-2020

Re: Error E00001 on when creating transaction using AcceptJS data

Is it possible that merchantAuthentication is missing "name"? 

When accessToken is set, name is already in that object, right?

Highlighted
Posts: 427
Topics: 0
Kudos: 88
Blog Posts: 0
Ideas: 0
Solutions: 34
Registered: ‎04-28-2017

Re: Error E00001 on when creating transaction using AcceptJS data

Hello,

 

One possibility is the 'dataValue' is not valid in the JSON in the createTransactionRequest, because it contains spaces or \n,\r

 

 

"dataValue": "eyJjb2RlIjoiNTBfMl8wNjAwMDUzQUMzOUIyODg2ODM5MzFFREI1MzNEQUE4RDlBNzgyNkVBNkY0ODhBOTQzMTVFMzlDRjE5
OTVEQzRENzJERDUwMDcxRkI1M0NEOUI3MkVGN0FBOUZBRTZCRkVCOTU4QTI3IiwidG9rZW4iOiI5NTgwOTE5OTc2MjYxNTc1MTA0NjAyIiwidiI6IjEuMSJ9
"

Try it with the 'dataValue' string trimmed:

"dataValue": "eyJjb2RlIjoiN8wNjAwMDUzQUMzOUIyODg2ODM5MzFFREI1MzNEQUE4RDlBNzgyNkVBNkY0ODhBOTQzMTVFMzlDRjE5OTVEQzRENzJERDUwMDcxRkI1M0NEOUI3MkVGN0FBOUZBRTZCRkVCOTU4QTI3IiwidG9rZW4iOiI5NTgwOTE5OTc2MjYxNTc1MTA0NjAyIiwidiI6IjEuMSJ9"

 

Powered by NexWebSites.com -
Certified Authorize.net developers
Highlighted
Member
Posts: 5
Registered: ‎02-05-2020

Re: Error E00001 on when creating transaction using AcceptJS data

Thanks for the suggestion. In our db there was no extra space still we added a trim to try . It did not make a diff. What did help was adding apiloginid.

At this stage, we are curious why apiloginid is needed if we are providing the oauth access token.

Highlighted
New Member
Posts: 1
Registered: ‎02-05-2020

Re: Error E00001 on when creating transaction using AcceptJS data


@Chick-fil-A survey wrote:

Hello,

 

One possibility is the 'dataValue' is not valid in the JSON in the createTransactionRequest, because it contains spaces or \n,\r

 

 

"dataValue": "eyJjb2RlIjoiNTBfMl8wNjAwMDUzQUMzOUIyODg2ODM5MzFFREI1MzNEQUE4RDlBNzgyNkVBNkY0ODhBOTQzMTVFMzlDRjE5
OTVEQzRENzJERDUwMDcxRkI1M0NEOUI3MkVGN0FBOUZBRTZCRkVCOTU4QTI3IiwidG9rZW4iOiI5NTgwOTE5OTc2MjYxNTc1MTA0NjAyIiwidiI6IjEuMSJ9
"

Try it with the 'dataValue' string trimmed:

"dataValue": "eyJjb2RlIjoiN8wNjAwMDUzQUMzOUIyODg2ODM5MzFFREI1MzNEQUE4RDlBNzgyNkVBNkY0ODhBOTQzMTVFMzlDRjE5OTVEQzRENzJERDUwMDcxRkI1M0NEOUI3MkVGN0FBOUZBRTZCRkVCOTU4QTI3IiwidG9rZW4iOiI5NTgwOTE5OTc2MjYxNTc1MTA0NjAyIiwidiI6IjEuMSJ9"

 


Thank you for sharing article and information. this is very helpful

Highlighted
Member
Posts: 5
Registered: ‎02-05-2020

Re: Error E00001 on when creating transaction using AcceptJS data

@Anurag -- Is it possible to comment?