checkout / frames-android

Frames Android: making native card payments simple
https://www.checkout.com/docs/integrate/sdks/android-sdk
MIT License
47 stars 32 forks source link

[4.0.0 Version] error with 3DS webview #176

Closed benju69 closed 1 year ago

benju69 commented 1 year ago

Describe the bug

After I validate the 3DS code in the webview I got an error in the ThreeDSResultHandler com.checkout.threedsecure.error.ThreeDSError

Screenshot 2022-12-21 at 10 37 00

What does it mean? Can you help?

Also I just got a "timeout" error in the PaymentFlowHandler, is it normal?

Expected behavior A ThreeDSResult Success with the token

maxim-nosov-cko commented 1 year ago

Hi @benju69

ThreeDSError() is sent only when onReceivedHttpError or onReceivedError is triggered in WebViewClient. From the provided screenshot, ThreeDSError was created in onReceivedHttpError. The timeout can be a result of an internet connection issue.

Did you try to reproduce it with our demo app? Is it a persistent issue that can be easily reproduced? Have you tried to test it on a real device? Do you have Kotlin or Java project?

benju69 commented 1 year ago

Hi @maxim-nosov-cko

I will try to reproduce with demo app Yes It's a persistent issue I'm testing on a real device, with a test card (4242) in Sandbox I have a Kotlin project The success redirection url is https://www.lalalab.com/success which is loaded in the webview, is a 404 page, maybe it's linked to the error?

benju69 commented 1 year ago

Ok I found the issue My callbacks urls didn't start with "https://", it's was just "www.site.com/success", now it's good