Hello,
We are trying to do tip adjust on a captured payment using Clover Payment Connector SDK but the response says "Payment not found" even though the payment exists in Clover. We can see the payment using Clover Transactions app. And we try again after some mintutes, it work. This behavior is random. Sometimes tip adjust works but sometime it gives payment not found error. We are using same MerchantID and same clover device.
Request:
Time:2021-09-27 23:23:00.784
{"paymentId":"50TBTR9KYQTN0","orderId":"BV96MTVY0223P","tipAmount":1649}
Response:
{"success":false,"result":"FAIL","message":"Error adding tip. Did not find a payment with id = 50TBTR9KYQTN0","reason":"Payment not found","paymentId":"50TBTR9KYQTN0","tipAmount":1649}
Retried again after some time and it succeeds,
Time: 2021-09-27 23:27:10.146
Request:
{"paymentId":"50TBTR9KYQTN0","orderId":"BV96MTVY0223P","tipAmount":1649}
Response:
{"success":true,"result":"SUCCESS","message":null,"reason":null,"paymentId":"50TBTR9KYQTN0","tipAmount":1649}
Steps -
Create pre auth payment using Clover Payment Connector SDK
Capture the authorization using REST API.
Tip adjust using payment connector SDK.
This happens in both demo and production units.
Thanks,
Uttam