question

devendra avatar image
devendra asked David Marginian Deactivated edited

not getting last payment response using cloverConnector#retrievePayment for some scenario

Hi Team,

We are trying to retrive last payment using cloverConnector#retrievePayment method but for some scenario we are not getting last payment response. Could you please let us know the way to retrieve last payment in case of payment failure due to connection failure before accepting the signature by cashier or any way to reverse the payment in case if we do not get the payment response from the clover to POS system.

Priority for this is very high as our client facing issue because Clover Mini device is disconnecting.

Thanks
Clover Mini
10 |2000

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

David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated edited
So you are getting a response, it just doesn't include the payment which is correct. In this case you are still in the middle of the payment and the device is busy when the connection dropped. In order to recover please see the retrieveDeviceStatus API. When the connection to the device has been re-established you can use this API to tell the device to resend the last message which in this case will be the signature challenge. This will allow your POS to pick-up where it left off, handle the signature challenge and complete the payment.
10 |2000

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

David Marginian avatar image
David Marginian Deactivated answered devendra commented
You should always be receiving a response when you call retrievePayment. If your POS is making the call without being connected to the device onDeviceDisconnected will fire instead of onRetrievePaymentResponse. Is it possible this is what is happening here? If so you need to wait until the POS has re-established a connection to the device and then make your retrievePayment call.
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.

devendra avatar image devendra commented ·

We are not getting response in following scenario.

We have received the signature on our POS system and Clover Mini device is blocked on the Screen with message "Please wait. Merchant is verifying your payment". After that connection between Clover Mini device and our POS system has been lost before acknowledging the signature. So when POS re-estalishes the coonection we are sending the retrievePayment request and in response we are getting InProgress in QueryStaus object and in Payment object we are geting Null.

So could you please let us know how we can retrieve the payment in above scenario.

Thanks

-1 Like -1 ·

Welcome to the
Clover Developer Community