question

javierangelh avatar image
javierangelh asked javierangelh edited

Refund Payment not returning response (PaymentConnector)

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



Clover Android SDKPaymentConnectorRefund
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community