Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding orderType to transactionRequestType failing since version 1.9.7 #301

Open
waycool2 opened this issue Jul 19, 2023 · 0 comments
Open

Comments

@waycool2
Copy link

If you add the orderType object to transactionRequestType it fails. We are stuck on 1.9.6 where it still works. If you comment out the orderType line in the newer versions things work as expected. The message in the Authorize.Net iframe just says an "unexpected error has occured" in red at the bottom.

Here are links to other people experiencing this.
https://community.developer.cybersource.com/t5/Integration-and-Testing/OrderType-is-causing-Unexpected-error-during-Payment-withour/td-p/65309
https://community.developer.cybersource.com/t5/Integration-and-Testing/Hosted-Payment-Form-gt-Unexpected-Error/m-p/74806
https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-transactionRequestType-Order-causes-Unexpected/m-p/66972
https://stackoverflow.com/questions/56861782/authorize-net-unexpected-error-while-using-invoicenumber

Code sample
//address information
var billAddress = new customerAddressType
{
firstName = currentBillingRecord.BillingFirstName,
lastName = currentBillingRecord.BillingLastName,
address = currentBillingRecord.BillingAddress.StreetAddress1,
city = currentBillingRecord.BillingAddress.City,
state = currentBillingRecord.BillingAddress.StateProvinceCode,
zip = currentBillingRecord.BillingAddress.PostalCode,
phoneNumber = phoneNumber
};

var order = new orderType
{
invoiceNumber = orderNumber,
};

var transactionRequest = new transactionRequestType
{
transactionType = transactionTypeEnum.authOnlyTransaction.ToString(), // authorize only
amount = amount,
billTo = billAddress,
order = order
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant