I have created order , added line items. Now I would like to implement clover mini payment with various options like SPLIT, FULL, ITEM WISE, CUSTOM. But each time I am trying to call pay function from OrderConnector it gives me NullPointer Exception. Please check the code snippet below
PaymentRequest paymentRequest = new PaymentRequest(); paymentRequest.setAmount(Long.parseLong(GlobalStaticData.order_subTotal)); paymentRequest.setOrderId(GlobalStaticData.modifyOrderId); paymentRequest.setEmployeeId(parentActivity.curEmployee.getId()); Payment payment = parentActivity.orderConnector.pay(GlobalStaticData.modifyOrderId, paymentRequest, false, "First Payment");