We are using Clover SDK to build a native application. For our giftcard sale, we create an order and add a custom line. What we are noticing is that when we add the line item and obtain a fresh copy of the order from the order connector, tax has been added using default tax rate. How do we prevent tax from being added automatically.
1. mOrder = new Order(); 2. mOrder = orderConnector.createOrder(mOrder); 3. LineItem item = new LineItem(); 4. item.setAlternateName("giftcard name); 5. item.setName("giftcard name"); 6. item.setPrice(cardSalePrice); 7. item.setTaxRates(null); 8. item.setUnitQty(1); 9. orderConnector.addCustomLineItem(mOrder.getId(), item, true); 10. ordermOrder = orderConnector.getOrder(mOrder.getId());
Thanks.