Hi,
I'm facing an issue trying to refund a payment using PaymentConnect. I just don't get a response, either for failure or success.
When I use it to make manual refunds it works correctly, but refund payment is not working for me. Any ideas what I could be missing?
This is my code trying Manual Refund that works just fine:
ManualRefundRequest refund = new ManualRefundRequest(); refund.setOrderId(order.getId()); refund.setType(TransactionType.CREDIT); refund.setAmount(order.getTotal()); refund.setExternalId(order.getPayments().get(0).getId()); mPaymentConnector.manualRefund(refund);
This is my code trying to refund a payment. I tried without amount, without fullrefund, same issue.
RefundPaymentRequest refund = new RefundPaymentRequest(); refund.setOrderId(order.getId()); refund.setFullRefund(true); refund.setAmount(order.getTotal()); refund.setPaymentId(order.getPayments().get(0).getId()); mPaymentConnector.refundPayment(refund );
This is what I get in the console:
I/System.out: connected D/: appTracking = {"applicationID":"XM13XM2XXT6X4","applicationVersion":"1.0","sourceSDK":"com.clover.connector.sdk.v3.PaymentConnector","sourceSDKVersion":"3.0.0"} D/: before sendAppTracking call D/: after sendAppTracking call I/ServiceConnector: waitForConnection result: true, retryCount: 0