I was making a Payment with Cash on my own App and all good. but when I try to refund it says fail, and still it registers the refund request successfully...
Does anyone know what could do this?
Request:
RefundPaymentRequest refundPaymentRequest = new RefundPaymentRequest(); refundPaymentRequest.setAmount(total_amount); refundPaymentRequest.setPaymentId(wpsTransaction.getPayment_id()); refundPaymentRequest.setOrderId(wpsTransaction.getOrder_id()); refundPaymentRequest.setDisablePrinting(true); refundPaymentRequest.setDisableReceiptSelection(true); paymentConnector.refundPayment(refundPaymentRequest);
Response:
{"success":false,"result":"FAIL","message":"Refund failed","refund":null}
SANDBOX ENVIRONMENT
Regards