When attempting to make a CreateTransactionRequest, the SDK throws an exception
Example code:
const request = new ApiContracts.CreateTransactionRequest({
merchantAuthentication: {
name: constants.apiLoginKey,
transactionKey: constants.transactionKey
},
transactionRequest: {
transactionType: ApiContracts.TransactionTypeEnum.AUTHCAPTURETRANSACTION,
amount: 1.00,
payment: {
creditCard: {
cardNumber: '4242424242424242',
expirationDate: '10/2025'
}
}
}
});
const ctrl = new ApiControllers.CreateTransactionController(request.getJSON());
const ctrl.execute(() => {
// ...
});
Error:
Error: The element 'createTransactionRequest' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'clientId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.
// ...
at Request._callback (/my-project/node_modules/authorizenet/lib/apicontrollersbase.js:115:5)
at Request.self.callback (/my-project/node_modules/request/request.js:185:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request.<anonymous> (/my-project/node_modules/request/request.js:1157:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage.<anonymous> (/my-project/node_modules/request/request.js:1079:12)
at Object.onceWrapper (events.js:313:30)
When attempting to make a CreateTransactionRequest, the SDK throws an exception
Example code:
Error: