question

bantran-3a avatar image
bantran-3a asked saffa answered

How to retrieve last transaction using sdk remote-pay-cloud from Direct connection with Secure Network Pay Display

Hi,
If POS is crashed while making a payment and that payment goes successful in Clover device but since POS crashes this information isn't stored in POS so is there a way to retrieve that information using sdk remote-pay-cloud if yes can you please provide the route with the body? Thanks!

Remote Pay Cloud
10 |2000

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

1 Answer

·
saffa avatar image
saffa answered

To retrieve the last transaction after a POS crash using the SDK remote-pay-cloud in a direct connection with Secure Network Pay Display, you can follow a similar approach as with live streaming data retrieval. Use the retrieveTransaction method to fetch the transaction details directly from Clover Cloud, even if the POS didn't store the information due to the crash. The route you typically need is /v1/transactions/{transactionId}, where {transactionId} should be replaced with the actual ID of the transaction. The request body should contain parameters such as the transaction ID, merchant ID, and API key for authentication. By making this call, the SDK will query the cloud system to retrieve the transaction details, ensuring that even after a POS crash, the information from the Clover device is successfully fetched. This approach is similar to handling live streaming data retrieval, where information is pulled from a remote server when local storage fails. Make sure to consult the SDK documentation for exact parameters and routes specific to your set


10 |2000

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

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