New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ThreeDSecureClient it never finish instantiation #698
Comments
Hi @salosoft thanks for using the Braintree SDK for Android. Can you make sure all libraries have the same version and see if that resolves the issue? |
Hi @sshropshire, thanks for the propt response. |
Sorry for my english.
Would that be because I am using the new way of creating the Please take a look on a representation of how our code is looks like:
Like I said, PayPal payment is working just fine. The issue is that on credit card after this screen I don't receive the callback above. |
Hi @KunJeongPark, I wanted to let you know that I have found some important information regarding the issue with the |
Hi @salosoft does your |
Hi @sshropshire It inherit from my class |
If your Usually a |
Hey @salosoft any update on this? |
Braintree SDK Version
three-d-secure:4.26.1
Environment
Sandbox
Android Version & Device
Android API 30 Motorola
Braintree dependencies
Describe the bug
We are using Braintree to perform payment on our platform, using ower own UI to collect card data. We are trying to migrate from v3 to v4 but we are facing some issues on Payment process. We also provide PayPal method as payment which is working just fine, but when I want to pay through Credit Card by using the Braintree I can't make the ThreeDSecureClient instantiate.
Here is how I am instantiating the code on my Acticity:
paymentClientToken
is supplied after fetching the data from my backend. But while debugging I realize that when the linethreeDClient = ThreeDSecureClient(this, brainTreeClient!!)
is executed the follow linethreeDClient!!.setListener(this)
is never reached. I have no idea how it can happen because my method is not suspended. So I tryied to instantiateThreeDSecureClient
by using the deprecated constructor, which does not require the Activity, this one worked, and executed thesetListener
but the listener itself is never called when I get back from the confirmation code screen.Can you help me solve this? Or either how to make the
ThreeDSecureClient(this, brainTreeClient)
works or get the listener being triggered when I get back from confirmation code screen?To reproduce
ThreeDSecureClient is never instantiate
Inside an Activity:
threeDClient!!.setListener(this)
is never reachedThreeDSecureClient is instantiate but
onThreeDSecureSuccess
oronThreeDSecureFailure
never triggeredInside an Activity:
continuePerformVerification
with the code bellowonThreeDSecureSuccess
oronThreeDSecureFailure
will be triggered.Expected behavior
ThreeDSecureRequest
with deprecated method, the listenersonThreeDSecureSuccess
oronThreeDSecureFailure
will be called when returning to the app, after adding the Confirmation Code.Screenshots
No response
The text was updated successfully, but these errors were encountered: