serverd: implement setRefund operation