Skip to content
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

6.5.1 PayPal not working #377

Closed
molchanovskiy opened this issue Dec 12, 2022 · 7 comments
Closed

6.5.1 PayPal not working #377

molchanovskiy opened this issue Dec 12, 2022 · 7 comments

Comments

@molchanovskiy
Copy link

molchanovskiy commented Dec 12, 2022

PayPal always gives UserCanceledException and onDropInSuccess is never called.

        val dropInRequest = DropInRequest()
        dropInRequest.isVaultManagerEnabled = true
        val payPalRequest = PayPalVaultRequest()
        dropInRequest.payPalRequest = payPalRequest
        .......
        dropInClient.setListener(PaymentDropInListener())
        dropInClient.launchDropIn(dropInRequest)

Could you check what is wrong?

I had tested with PayPalClient and it works fine, the issue only exist when using DropInClient

@sshropshire
Copy link
Contributor

Hi @molchanovskiy thanks for using the Braintree SDK for Android. Are you instantiating the DropInClient and setting its listener in your Activity / Fragment's onCreate() method?

@molchanovskiy
Copy link
Author

@sshropshire
Yes, credit card and google pay works great, the issue only occurs with PayPal.

@sshropshire
Copy link
Contributor

A few questions:

  • What version of Android does this occur on?
  • Is this on a device or emulator?

Also, can you provide a video of the unexpected behavior so we can better assist with debugging?

@sshropshire
Copy link
Contributor

@molchanovskiy this integration pattern could cause unpredictable behavior.

@molchanovskiy
Copy link
Author

@sshropshire
Android 10 API 29, Emulator
Credit Card and Google Pay is working great every time, I had tested 20+ times. But PayPal is always giving UserCanceledException once redirected back to the app after tapping Agree on the PayPal website.

@molchanovskiy
Copy link
Author

@sshropshire
PayPal works fine on device, thank you!

@sshropshire
Copy link
Contributor

Awesome! Closing this for now. Feel free to reopen this if you encounter the issue again.

Going forward, if you'd like to share more about your use case, we are coming up on a next-major-version. We'll soon reopen this discussion to solicit feedback from the community on our API in an effort to offer the best possible developer experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants