You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My goal is to pull a transactionDetailsSummaryType using the transactionDetailsType Id. I want to pull orders by number, instead of date. Is this possible? What is the relationship between these two objects? Here is my code:
` public transactionSummaryType GetTransactionByRefId(string refId)
{
var request = new getTransactionListRequest();
request.merchantAuthentication = GetMerchantAuthentication();
request.refId = refId;
// instantiate the controller that will call the service
var controller = new getTransactionListController(request);
controller.Execute();
// get the response from the service (errors contained if any)
var response = controller.GetApiResponse();
if (response == null || response.transactions == null)
return null;
else
return response.transactions.FirstOrDefault();
}
`
` public transactionDetailsType GetTransactionDetails(string transactionId)
{
var request = new getTransactionDetailsRequest();
request.transId = transactionId;
request.merchantAuthentication = GetMerchantAuthentication();
// instantiate the controller that will call the service
var controller = new getTransactionDetailsController(request);
controller.Execute();
// get the response from the service (errors contained if any)
var response = controller.GetApiResponse();
if (response != null && response.messages.resultCode == messageTypeEnum.Ok)
{
return response.transaction;
}
else if (response != null)
{
Console.WriteLine("Error: " + response.messages.message[0].code + " " +
response.messages.message[0].text);
}
return null;
}
`
The text was updated successfully, but these errors were encountered:
Hi,
My goal is to pull a transactionDetailsSummaryType using the transactionDetailsType Id. I want to pull orders by number, instead of date. Is this possible? What is the relationship between these two objects? Here is my code:
` public transactionSummaryType GetTransactionByRefId(string refId)
{
var request = new getTransactionListRequest();
request.merchantAuthentication = GetMerchantAuthentication();
request.refId = refId;
`
` public transactionDetailsType GetTransactionDetails(string transactionId)
{
var request = new getTransactionDetailsRequest();
request.transId = transactionId;
request.merchantAuthentication = GetMerchantAuthentication();
`
The text was updated successfully, but these errors were encountered: