Hi,
I am using the captureOnlyTransaction method to charge credit card. While doing so I am saving some text in the order description field, but on Authorize.net the data in the description field is not getting saved. In authOnlyTransaction method the order description is getting saved.
Following is the code snippet.
customerProfilePaymentType profileToCharge = new customerProfilePaymentType();
profileToCharge.customerProfileId = customerProfileId;
profileToCharge.paymentProfile = new paymentProfile
{
paymentProfileId = customerPaymentProfileId
};
var transactionRequest = new transactionRequestType
{
transactionType = transactionTypeEnum.captureOnlyTransaction.ToString(),
amount = amount,
refTransId = "123456",
profile = profileToCharge,
authCode = authCode,
order = new orderType()
{
description = "Sample description"
}
};
var request1 = new createTransactionRequest { transactionRequest = transactionRequest };
var controller = new createTransactionController(request1);
controller.Execute();
I want to save description in order description when using captureOnlyTransaction method.
โ03-15-2023 06:30 AM
Based on your code snippet, it looks like you're using the Authorize.Net API to process credit card transactions and you're having trouble getting the order description to be saved when using the captureOnlyTransaction method.
One thing to check is the value you're passing for the refTransId parameter. According to the Authorize.Net API documentation, the refTransId parameter should contain the transaction ID of the original transaction that was authorized but not captured. If you're passing a value that doesn't correspond to an existing authorized transaction, that may be causing the issue with the order description not being saved.
Another thing to check is whether the order description is being saved in the transaction history in Authorize.Net. Even if the description isn't showing up in the merchant interface or reports, it may still be recorded in the transaction details. You can check the transaction details to see if the description is being recorded.
If neither of those suggestions help, you may want to contact Authorize.Net support for further assistance. They may be able to provide additional guidance on how to save the order description when using the captureOnlyTransaction method.
โ04-05-2023 07:27 PM
Thanks for sharing.
โ04-06-2023 09:14 AM