Hello, I have the following code for creating a transaction request to Authorize.Net using their SDK:
Merchant Authentication setup complete.
Credit Card setup complete. CreditCardType {
cardNumber: '4242424242424242',
expirationDate: '0842',
cardCode: '999',
isPaymentToken: null,
cryptogram: null,
tokenRequestorName: null,
tokenRequestorId: null,
tokenRequestorEci: null
}
Transaction request setup complete.
Transaction request created. Ready for API call.
Cleaned Transaction Request Object: CreateTransactionRequest {
merchantAuthentication: MerchantAuthenticationType {
name: 'xxxxxxx',
transactionKey: 'xxxxxxx',
sessionToken: null,
password: null,
impersonationAuthentication: null,
fingerPrint: null,
clientKey: null,
accessToken: null,
mobileDeviceId: null
},
transactionRequest: TransactionRequestType {
transactionType: 'authCaptureTransaction',
amount: 100,
currencyCode: null,
payment: PaymentType {
creditCard: [CreditCardType],
bankAccount: null,
trackData: null,
encryptedTrackData: null,
payPal: null,
opaqueData: null,
emv: null,
dataSource: null
},
profile: null,
solution: null,
callId: null,
terminalNumber: null,
authCode: null,
refTransId: null,
splitTenderId: null,
order: null,
lineItems: null,
tax: null,
duty: null,
shipping: null,
taxExempt: null,
poNumber: null,
customer: null,
billTo: null,
shipTo: null,
customerIP: null,
cardholderAuthentication: null,
retail: null,
employeeId: null,
transactionSettings: null,
userFields: null,
surcharge: null,
merchantDescriptor: null,
subMerchant: null,
tip: null,
processingOptions: null,
subsequentAuthInformation: null,
otherTax: null,
shipFrom: null,
authorizationIndicatorType: null
}
}
Calling Authorize.Net API...
Received API response: { messages: { resultCode: 'Error', message: [ [Object] ] } }
Response Messages: [
{
code: 'E00001',
text: "JSON root object has multiple properties. The root object must have a single property in order to create a valid XML document. Consider specifying a DeserializeRootElementName. Path 'transactionRequest', line 1, position 282."
}
]
I appreciate any help.
Thanks!
Issue: Authorize.Net API Integration -
E00001ErrorHello, I have the following code for creating a transaction request to Authorize.Net using their SDK:
and I get the following error:
Error:
E00001- "JSON root object has multiple properties."logs as follows:
I appreciate any help.
Thanks!