Monday, April 25, 2016

Authorize.Net Error Message: (270) Line item 1 is invalid

I was recently working on using the SIM Authentication method with Authorize.Net, when I suddenly encountered the following error message:

Well, after I consulted the Authorize.Net SIM guide for Itemized Order Information, then I discovered that I needed to provide 5 values in each of my x_line_item values as follows:

paymentModel.x_line_item = string.Format("{0}<|>{1}<|>{2}<|>{3}<|>{4}<|>{5}", model.MembershipTypeID, model.MembershipType, model.MembershipType, 1, model.MembershipCost, "N");

That was all that was needed to fix my issue!

No comments:

Post a Comment