When I am issuing partial refund, on clover flex, how do I ensure that it displays the amount that will be refunded?
In below example, full order was of $70.32, and I was trying to process the refund of $35.
At the moment, it shows the full amount of the order. Everything in background is all good, and only amount I send in refund request is getting refunded.
I am using remote cloud sdk and this is how my refund request looked like:
var cloverRefundRequest = new clover.remotepay.RefundPaymentRequest(); cloverRefundRequest.setOrderId(refundRequest.orderId); cloverRefundRequest.setPaymentId(refundRequest.paymentId); cloverRefundRequest.setFullRefund(false); cloverRefundRequest.setAmount(parseFloat(refundRequest.paymentAmount * 100)); cloverConnector.refundPayment(cloverRefundRequest);