adyen-android icon indicating copy to clipboard operation
adyen-android copied to clipboard

PSD2 Challenge view back pressed

Open DJuanan opened this issue 5 years ago • 6 comments

Every time the user press "back" in the PSD2 challenge view, the caller activity receives the next sequence: onResume --> onPause --> onResume That is causing me some problems with error handling.

This is not happening when the user presses the "cancel" top-right button in the challenge view.

DJuanan avatar Sep 10 '20 12:09 DJuanan

By PDS2 you mean the 3DS2 SDK? Are you using the 3DS2 Component?

caiofaustino avatar Sep 10 '20 12:09 caiofaustino

Exactly 3DS2. and yes, 3DS2 Component

DJuanan avatar Sep 10 '20 12:09 DJuanan

Are you using the error observer to check for errors and cancelation? adyen3DS2Component.observeErrors(lifecycleOwner, observer) You will get back a ComponentError and you can check if componentError.getException() it's an instance of Cancelled3DS2Exception

caiofaustino avatar Sep 10 '20 12:09 caiofaustino

Yes, I'm doing it already and I get the Cancelled3DS2Exception, but the behavior when you return to the previous activity is not the same if you press cancel or you do a "back", causing in the previous activity the strange sequence of calls I wrote up there.

DJuanan avatar Sep 10 '20 12:09 DJuanan

Hmmm, that's strange, but might require an update on the 3DS2 SDK instead. I'll have to investigate that better. Do you get the calls in this order? onResume --> onError --> onPause --> onResume or onResume --> onPause --> onResume --> onError

caiofaustino avatar Sep 10 '20 12:09 caiofaustino

onResume --> onPause --> onError --> onResume

DJuanan avatar Sep 10 '20 13:09 DJuanan

Closing for inactivity, please reopen this issue if you are still experiencing problems.

jreij avatar Sep 29 '22 08:09 jreij