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

BrowserSwitchResult "User canceled PayPal" even though it was success #588

Open
sreereddymenon opened this issue Aug 30, 2022 · 9 comments

Comments

@sreereddymenon
Copy link

General information

  • SDK/Library version:4.15.0
  • Environment: Sandbox
  • Android Version and Device: Android 12 and Google Pixel 3
  • Braintree dependencies:
    implementation 'com.braintreepayments.api:paypal:4.15.0'
    implementation 'com.braintreepayments.api:venmo:4.15.0'
    implementation 'com.braintreepayments.api:data-collector:4.15.0'

Issue description

I have a fragment

@sshropshire
Copy link
Contributor

sshropshire commented Aug 30, 2022

Hi @sreereddymenon thanks for using the Braintree SDK for Android. Can you provide steps to reproduce this issue so we can diagnose further?

It may also help to see a code snippet of your app's PayPalClient creation to help find the root cause of the false cancelation.

@Hector1990
Copy link

I think this can be reproduced by:

  1. Complete the payment in paypal page, don't back to the app by deeplink.
  2. Return to their app by switching manually.

@sshropshire
Copy link
Contributor

Thanks @Hector1990. Can you provide a video showing the issue? The deep link should automatically bring you back to the application after completing the PayPal flow.

@Hector1990
Copy link

I provided the video here: #611

@sshropshire
Copy link
Contributor

@Hector1990 thanks that video is for the popup dialog. This seems to be a separate issue where the user isn't automatically redirected back to the application? Would you consider this a duplicate of #611?

@Hector1990
Copy link

@sshropshire Sorry for that. They are two issues. I provided the video because if the deep link is not triggered automatically, you can manually switch to your app. And if your activity is not singleTop or singleTask, the canceled result he mentioned would be triggered.

@sshropshire
Copy link
Contributor

@Hector1990 got it yeah that's interesting. Does it just hang? Do you have a video of the deep link not being triggered automatically? Only asking because I haven't seen this happen in or Demo application yet.

@sshropshire
Copy link
Contributor

Hi @Hector1990 does this issue still occur in the latest 4.26.1 version?

@Chaos2805
Copy link

@sshropshire I hit it in latest drop in version - 6.11.0, which include 4.33.0

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

No branches or pull requests

5 participants