I am creating order pro-grammatically.
I have referred below code
My requirement is to set discount amount for each cart item.
The discount amount is 5.
I tried below code for that.
after the line
It is not working. Can anyone help me to achieve this functionality.