question

rhyshintmd avatar image
rhyshintmd asked David Marginian Deactivated answered

PaymentConnector error handling (possible scenarios)

I wanted to check on possible error scenarios in using the PaymentConnector.

Like, is it a valid concern that our app's onSaleResponse listener might not get triggered? What should do in these cases ?(I'm thinking we set a timeout and if that is reached with no trigger yet to onSaleResponse, call a void?)

Will there be possibility of error happening between the time that sale is invoked and before payment processing is finished. And in this case do we need to check if payment went thru?


thanks,

Rhys

PaymentsPaymentConnector
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

You need to code for that, although it should rarely if ever happen in practice. We have some best practices for our remote pay SDKs, and a lot of the concepts also apply to Payment Connector - https://docs.clover.com/clover-platform/docs/remote-pay-sdk-best-practices.

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