braintree / braintree-android-drop-in

Braintree Drop-In SDK for Android
https://developers.braintreepayments.com/guides/drop-in/android/v2
MIT License
124 stars 79 forks source link

Paypal payments end with 'User cancelled dropin' #444

Closed emafru90 closed 9 months ago

emafru90 commented 9 months ago

Braintree SDK Version

4.38.2

Environment

Production

Android Version & Device

Android 12 Pixel 12 - Android 13 Realme 8 pro

Braintree dependencies

'com.braintreepayments.api:drop-in:6.13.0'

Describe the bug

Every time user try payment with paypal, after payment, on return in app screen, sdk return following error 'User canceled DropIn.' This is a custom native plugin integrate in react native app. In screenshots I've add error detail and part of androidManifest of React native app.

braintreeDeepLinkReturnUrlScheme is right filled.

This process works fine in sandbox environment

To reproduce

  1. Init braintree dropin
  2. Show payments list
  3. Select Paypal
  4. Go to Paypal screen
  5. Insert right credential
  6. Go back in app
  7. User get 'User canceled DropIn.'

Expected behavior

We expect to get right failure message or success message

Screenshots

Screenshot 2023-09-29 alle 09 49 48 Screenshot 2023-09-29 alle 09 55 44

sshropshire commented 9 months ago

Hi @emafru90 thanks for using the Braintree SDK for Android. Does your application id happen to have uppercase letters?

emafru90 commented 9 months ago

Hi @sshropshire thansk for yout feedback, I solved it by removing intent-filter from android manifest. Thank you.

sshropshire commented 9 months ago

@emafru90 awesome!