question

Lorraine LIng avatar image
Lorraine LIng asked David Marginian Deactivated answered

Recovery on transaction failures using Clover SDK

Questions on our integrated Android App:


1. If a Clover transaction API fails, ie PaymentConnector’s Sale(), VoidPayment() or RefundPayment() fails, will the Clover SDK handle recovery, or are there any best practices our app should do to recover?

2. If our app crashes during a clover payment, is there any best practices for determining the outcome after our app restarts?

Should we use the PaymentConnector’s retrievePendingPayments() method


3. Can we get error codes in addition to error messages for results of payment, voids and refunds?

Clover Android SDK
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

David Marginian avatar image
David Marginian Deactivated answered

Generally, you should track and persist payments you initiate with external id and NEVER assume a payment is complete unless you get a successful response for the full amount. We have some best practices for our Remote SDKs - https://docs.clover.com/docs/remote-pay-sdk-best-practices. Similar principles apply to Payment Connector, of course you don't have connectivity issues because you are on the device but you still need to account for app crashes etc.

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