Is the only way to get the line item marked as paid on an order through the Intent result?
Related to this question, but more specific:
https://community.clover.com/questions/23267/how-to-specify-line-item-in-split-by-item-payment.html
Is the only way to get the line item marked as paid on an order through the Intent result?
Related to this question, but more specific:
https://community.clover.com/questions/23267/how-to-specify-line-item-in-split-by-item-payment.html
What I learned is that you need to update the Order PayType to SPLIT_ITEM for the lineItemPayment to be reflected on the LineItem. I have still been unable to determine how to determine what else needs to be updated so that the next payment will be scheduled. I think there is probably some kind of result intent that is sent from the split payment screen that can not be reproduced through the SDK.
override fun updatePayTypeOnCurrentOrder(payType: PayType): Result<Unit> { val currentOrder = getCurrentOrder() return if (currentOrder != null) { val cloverOrder = orderV31Connector.getOrder(currentOrder.orderId) cloverOrder.payType = payType try { orderV31Connector.updateOrder(cloverOrder) Result.Success(Unit) } catch (throwable: Throwable) { Result.Failure(throwable) } } else { Result.Failure(Throwable("Current order is null")) } }
3 People are following this question.