Hello,
I am developing clover app in that i want to create order from my app so it is possible to create open order from my app or give me any link or suggestion if it is possible ?
Hello,
I am developing clover app in that i want to create order from my app so it is possible to create open order from my app or give me any link or suggestion if it is possible ?
Yes. We do this using the SDK, but it is also possible using the API; https://docs.clover.com/build/working...
Here are a few lines showing how we do it using the SDK;
Order mOrder;
mOrder = orderConnector.createOrder(new Order());
orderConnector.updateOrder(mOrder);
orderId = mOrder.getId();
LineItem lineItem = new LineItem();
lineItem.setName("Test");
lineItem.setPrice(Long.valueOf(100));
lineItem.setIsRevenue(true);
orderConnector.addCustomLineItem(mOrder.getId(), lineItem, true);
lineItem = new LineItem();
lineItem.setName("Test Line 2");
lineItem.setPrice(Long.valueOf(200));
lineItem.setIsRevenue(true);
orderConnector.addCustomLineItem(mOrder.getId(), lineItem, true);
orderConnector.updateOrder(mOrder);
Yes. I've updated the answer to show 2 items being added. Don't forget to accept this answer :)
3 People are following this question.