question

bobbygill avatar image
bobbygill asked bryanvargas commented

Payment to refund could not be found for paymentId

RefundPaymentRequest refund = new RefundPaymentRequest();

refund.setPaymentId(payment.getId());

refund.setOrderId(payment.getOrder().getId());

refund.setFullRefund(true);


paymentConnector.initializeConnection();

paymentConnector.refundPayment(refund);


Response of above request is as follow :

RefundPaymentResponse{json='{"message":"Payment to refund could not be found for paymentId: M5B1GPDX85CHY","success":false,"result":"ERROR","refund":null}', bundle=null, changeLog=Bundle[{success=null, refund=null, result=null, message=null}]}


always first time in a day , I am getting success response. but after that I am getting "message":"Payment to refund could not be found for paymentId:PAYMENT_ID"


FYI : I'm using Clover mini C-300

OrdersPaymentsClover Mini
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.

bryanvargas avatar image bryanvargas ♦♦ commented ·
I am not seeing the request hitting our system. Can you try to refund the payment again and make sure the device is sync?
0 Likes 0 ·

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