I ran into issues with lineItems and would like to verify that I am doing it properly.
The documentation show the "lineItems" as an array of lineItem but the example is not using an array. Is this a mistake in the documentation? When I used json which follows the documentation I got an error.
Also, when I added the "lineItems" array at the end of the "transactionRequest" I got an error. It only worked if the "lineItems" followed the "payment" element. Is this positioning required?
This worked:
While this did NOT:
Any help is appreciated (new to authorize.net)!
03-08-2023 12:45 PM