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

Mi Note - 7s Android app not redirecting back to app after completing a PaymentIntent Stripe #3952

Closed
kirubakaranHTS opened this issue Jul 5, 2021 · 16 comments · Fixed by #4046
Assignees
Labels

Comments

@kirubakaranHTS
Copy link

Summary

I integrated stripe payment in my project .
Android app not redirecting back to app after completing a PaymentIntent Stripe in Only Mi Note 7s device.
To solve this issue,we need to use return_url in PaymentIntent. but I don't know how to implement return_url

Code to reproduce

Android version

we used SdkVersion - 30

Impacted devices

Mi Note 7s, vivo V2036.

Installation method

I implemented in gradle file. like below
implementation 'com.stripe:stripe-android:16.10.0'

Dependency Versions

stripe-android:16.10.0

Gradle:distributionUrl=https://services.gradle.org/distributions/gradle-6.7.1-bin.zip

Other information

@michelleb-stripe
Copy link
Contributor

Thanks for writing in, and I am sorry to hear you are having problems, we will try to help.

In 16.10.0 a return_url should not be required.

  1. Can you describe a little more of which api you are using in the SDK? Are you using this one?
fun confirmPayment(
        activity: ComponentActivity,
        confirmPaymentIntentParams: ConfirmPaymentIntentParams,
        stripeAccountId: String? = this.stripeAccountId
    )
  1. What behavior are you seeing? You can take a video of a connected device or emulator by:
    a. Open Android Studio.
    b. Click on View -> Tool Windows -> Logcat
    c. In the left most side of the logcat window pane are some vertical icons, under the restart and settings icon is a camera and video. Pressing either of these will allow you to take a screenshot or video of the issue.

@kirubakaranHTS
Copy link
Author

kirubakaranHTS commented Jul 6, 2021 via email

@michelleb-stripe
Copy link
Contributor

You can remove the video now if you want to restrict access to the data. I appreciate the extra information, it is really helpful. I will take a look at it and get back to you.

@kirubakaranHTS
Copy link
Author

kirubakaranHTS commented Jul 6, 2021 via email

@ccen-stripe
Copy link
Contributor

ccen-stripe commented Jul 8, 2021

Hi @kirubakaranHTS , we use Chrome Custom Tab to to open a url by default, on some devices where this is not available, we fallback to WebView, which is less secure. The inconsistency you see is due to some devices doesn't have Chrome Custom Tab available.

We will have a change in the next week to fix the returnUrl issue on both browsers, will update there once it's released.

@brnunes-stripe
Copy link
Contributor

Hi @kirubakaranHTS, the change mentioned by @ccen-stripe is included in release v17.0.0. Can you please update your dependency and report back if you still see the issue?
Thanks!

@kirubakaranHTS
Copy link
Author

kirubakaranHTS commented Jul 21, 2021 via email

@maciej-wichrowski
Copy link

We have experienced same behavior. The button is not triggering any redirect.
stripesdk://payment_return_url/com.xxx.app?setup_intent=seti_xxx&setup_intent_client_secret=seti_xxx&source_redirect_slug=live_xxx

@michelleb-stripe
Copy link
Contributor

@maciej-wichrowski and @kirubakaranHTS We are releasing version 17.1.0 which has a fix to make the redirect work on Firefox. I hope this also makes it work on the Mi Note Browser.

If you are still having issues after updating to 17.1.0, please let us know.

@kirubakaranHTS
Copy link
Author

kirubakaranHTS commented Jul 28, 2021 via email

@kirubakaranHTS
Copy link
Author

kirubakaranHTS commented Jul 28, 2021 via email

@michelleb-stripe
Copy link
Contributor

michelleb-stripe commented Jul 28, 2021

@kirubakaranHTS Does this accurately describe what you are seeing:

  1. Enter card details
  2. Press pay
  3. Redirected to a browser to do confirmation
  4. Confirm authentication in the browser
  5. See the PaymentSheet again, and the buy button is showing processing forever and never dismisses?

If this is the case there is a fix in 17.1.0 that should fix it. 17.1.0 should be out later today.

@kirubakaranHTS
Copy link
Author

kirubakaranHTS commented Aug 5, 2021 via email

@maciej-wichrowski
Copy link

@michelleb-stripe We have an issue that user is entering the correct card then finishing 3dsecure and no data is passed to onActivityResult

@michelleb-stripe
Copy link
Contributor

@maciej-wichrowski Could you share some information about your setup as well?

  1. Are you using the stripe-android library directory or are you using Flutter or react native?
  2. Which phone model are you using?
  3. What Stripe SDK interfact are you using to kick off 3DS2? (PaymentSheet, Stripe.confirmSetupIntent, Stripe.confirmPaymentIntent, or something else)?
  4. What version of the Stripe SDK are you using?

@michelleb-stripe
Copy link
Contributor

@maciej-wichrowski Please reopen the issue if we can help you any further.

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

Successfully merging a pull request may close this issue.

5 participants