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

Unauthorized error when trying to get the drop-in configuration #671

Closed
4gus71n opened this issue Feb 2, 2023 · 1 comment
Closed

Unauthorized error when trying to get the drop-in configuration #671

4gus71n opened this issue Feb 2, 2023 · 1 comment

Comments

@4gus71n
Copy link

4gus71n commented Feb 2, 2023

Braintree SDK Version

2.2.7-2

Environment

Production

Android Version & Device

Android 13 & SM-G991U

Braintree dependencies

com.braintreepayments.api:drop-in:6.5.1

Describe the bug

One of our users got this error 👇

image

I see the exception gets triggered from Braintree but I don't understand why.

This is how we initialize the DropIn in our Activity👇

  private fun initDropInClient() {
    val tokenizationKey = getString(R.string.braintree_tokenization_key)
    val dropInRequest = DropInRequest()
    dropInRequest.isPayPalDisabled = true
    dropInClient = DropInClient(this, dropInRequest, tokenizationKey)
    dropInClient.setListener(this)
  }

The DropInListener triggers the onDropInFailure(Exception) and that's when we show the error message.

To reproduce

Try to add a new payment method

Expected behavior

Maybe we are missing some configuration or something, but this same user was able to use that exact same payment method through the web platform.

Screenshots

It is suspiciously similar to this other issue 👇
#155

But that one got fixed quite some time ago.

Let me know if there's any more data we can provide, thanks a lot! 🙇

@sshropshire
Copy link
Contributor

Hi @4gus71n thanks for using the Braintree SDK for Android. Could you re-open this issue in the DropIn repo? I'll help troubleshoot once we're there.

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