question

vhernandez avatar image
vhernandez asked Sukhbir Singh answered

PaymentConnector methods in background and sleep mode

Hello I'm using clover android sdk on Mini Clover, we call capturePreAuth from IPaymentConnector and it works, however when we have a problem in our side, we keep the data to capture after, we have a background service to pick the data up and do capturePreAuth, I just realized capturePreAuth callback method onCapturePreAuthResponse does not work in background and the device is sleeping, so if the device calls capturePreAuth in background and the device is sleeping, then the device will get the response back when it wakes up. Is there any way to fix it?

Thanks!!

Clover Android SDKClover 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.

1 Answer

·
Sukhbir Singh avatar image
Sukhbir Singh answered

You should not need to add any other background service to call the capture pre-auth. capturePreAuth already worked in the background. So you should call the capturePreAuth and start the loading screen until the response. The loading screen will start before the capturePreAuth and it will stop in onCapturePreAuthResponse.

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