braintree_android icon indicating copy to clipboard operation
braintree_android copied to clipboard

BrowserSwitchResult "User canceled PayPal" even though it was success

Open srmdev29 opened this issue 3 years ago • 11 comments

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

srmdev29 avatar Aug 30 '22 12:08 srmdev29

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.

sshropshire avatar Aug 30 '22 14:08 sshropshire

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.

Hector1990 avatar Oct 18 '22 12:10 Hector1990

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.

sshropshire avatar Oct 20 '22 15:10 sshropshire

I provided the video here: https://github.com/braintree/braintree_android/issues/611

Hector1990 avatar Nov 03 '22 07:11 Hector1990

@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?

sshropshire avatar Nov 14 '22 19:11 sshropshire

@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.

Hector1990 avatar Nov 15 '22 07:11 Hector1990

@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 avatar Nov 15 '22 15:11 sshropshire

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

sshropshire avatar Mar 01 '23 17:03 sshropshire

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

Chaos2805 avatar Aug 21 '23 06:08 Chaos2805

Are there any updates for this feature? @sshropshire @sarahkoop Some GA merchants think if automatic redirection is not realized, it will impact the conversion rate.

liucaizhong avatar Jun 26 '24 09:06 liucaizhong