I'm trying to create LineItems using the SDK and I'm able to create and update LineItems. The problems is that I get stuck while adding custom modifications. My clover app doesn't create or uses items from the Inventory. It is getting really difficult for me to add a custom LineItem Modification.
I tried using the orderConnector.addLineItemModification(orderId, lineItemId, modifier) but it didn't work neither it throws any exception. I have read many tickets here on the community and nothing helps me because those are not related to custom modifications without using Modifiers and Modifier Groups from the Inventory. I want to add custom modifications to the lineItems because I want to add it to the Order and want it printed on the Order and Payment receipts along with the Modifier Groups.
Is there any solution available for custom modifications? Please help me out. Need a solution to achieve this. Thanks!