RefundPaymentRequest refund = new RefundPaymentRequest();
refund.setPaymentId(paymentId);
refund.setOrderId(orderId);
refund.setAmount(amount);
refund.setFullRefund(false);
mPaymentConnector.refundPayment(refund);
Thank you.
Hi @Raymond Lee
We are using clover flex and clover mobile device and the issue is still. In the case of failure, we didn't find reasion of failiour.
Thank you.
Can you provide the paymentId for the payment you are trying to refund? We can take a look as to why the refund failed, and why the reason is null.
Hi @Raymond Lee
Thanks for your answer. But you can also try on your side via the following steps:
Let me clear you via the following example:
1. We did pay for $50.
2. We hit the refund request of $50 for the same transaction. (In that case, the refund will be successful).
3. We hit the refund again for the same transaction.
You will found:
{"message":null,"result":"FAIL","success":false,"reason":null,"refund":null}
Thanks.
1 Person is following this question.