question

Al Connelly avatar image
Al Connelly asked mtt commented

CloverConnector RefundPaymentRequest

How do I trigger a refund payment request for a semi-integrated setup?

The documentation and the SDK appears to have a call to issue a RefundPaymentRequest through the cloverconnector, but calling this method doesn't appear to do anything.

        RefundPaymentRequest refundPaymentRequest = new RefundPaymentRequest();
        refundPaymentRequest.setPaymentId(orderDetail.getPaymentId());
        refundPaymentRequest.setAmount(orderDetail.getTotal().longValue() * 100);
        refundPaymentRequest.setOrderId("");

        cloverConnector.refundPayment(refundPaymentRequest);

https://docs.clover.com/build/getting...

Refund
1 comment
10 |2000

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

mtt avatar image mtt commented ·

I'm having the same issue in sandbox. Here's what I get from the console:

klass {success: false, result: "FAIL", reason: "FAIL", message: undefined, refund: undefined}

Possibly related: Possibly related: https://devask.clover.com/question/11...

Would be nice to get confirmation from staff

0 Likes 0 ·
mtt avatar image
mtt answered

Try using cloverConnector.manualRefund(refundPaymentRequest); with the ManualRefundRequest

10 |2000

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

mtt avatar image
mtt answered
10 |2000

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