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

[BUG] Android SDK PaymentSheet Unable To Proceed Adding of Card #9781

Open
acadetorres opened this issue Dec 13, 2024 · 8 comments
Open

[BUG] Android SDK PaymentSheet Unable To Proceed Adding of Card #9781

acadetorres opened this issue Dec 13, 2024 · 8 comments
Labels
bug triaged Issue has been reviewed by Stripe and is being tracked internally

Comments

@acadetorres
Copy link

acadetorres commented Dec 13, 2024

Summary

When Adding a card using PaymentSheet, user is unable to proceed to the "add payment method" using a remote/keyboard input.

Code to reproduce

fun presentPaymentSheet() {
showLoading(true)
devFeatures.isStripeOpen = true
paymentSheet.presentWithPaymentIntent(
paymentIntentClientSecret,
PaymentSheet.Configuration(
merchantDisplayName = getString(R.string.merchant),
customer = customerConfig,
allowsPaymentMethodsRequiringShippingAddress = false,
// Set allowsDelayedPaymentMethods to true if your business handles
// delayed notification payment methods like US bank accounts.
allowsDelayedPaymentMethods = true
)
)
}

Android version

Android 13 Android 13

Impacted devices

All

Installation method

Through gradle dependency,

Dependency Versions

kotlin:1.9.22
stripe-android: implementation ("com.stripe:stripe-android:21.2.1")
Android Gradle Plugin: gradle 8.11
Gradle:

SDK classes

PaymentSheet

Video

Video
https://we.tl/t-uVKeJcUWMz

Other information

On similar note, users cannot navigate out of the "pay" button on PaymentSheet using a remote.

@joyceqin-stripe
Copy link

Hi @acadetorres, thanks for reporting! We'll look into this.

@joyceqin-stripe joyceqin-stripe added the triaged Issue has been reviewed by Stripe and is being tracked internally label Dec 13, 2024
@acadetorres
Copy link
Author

Hi @joyceqin-stripe , thanks for checking it.

To add, even when using the old UI with this code,

paymentSheet.presentWithPaymentIntent(
            paymentIntentClientSecret,
            PaymentSheet.Configuration.Builder(getString(R.string.merchant))
                .merchantDisplayName(getString(R.string.merchant))
                .customer(customerConfig)
                .allowsDelayedPaymentMethods(true)
                .allowsPaymentMethodsRequiringShippingAddress(false)
                .paymentMethodLayout(PaymentSheet.PaymentMethodLayout.Horizontal)
                .build()
        )

Users are still unable to add payment method/card

@jaynewstrom-stripe
Copy link
Collaborator

Hi @acadetorres I'm unable to reproduce this issue. I'm using the android emulator, with the remotes directional pad. Could you provide some more information on how you are hitting this issue?

Screen_recording_20250102_155102.mp4

@acadetorres
Copy link
Author

acadetorres commented Jan 3, 2025

Hi @jaynewstrom-stripe , thanks for checking it. However our customers cites that this workaround is not something they could figure out on their own which is evident on the spike our failed payments.

Screen.Recording.2025-01-03.at.11.59.32.AM.mov

Please see video how our customers are doing it, basically they presses "next" and "done" from the on screen keyboard. Also as you can see from the video, users also unable to navigate out of "pay" button.

@jaynewstrom-stripe
Copy link
Collaborator

I would expect the user to click down on the directional pad to select the pay button after the keyboard is dismissed in your example. Is that not happening, or are you expecting something different?

@acadetorres
Copy link
Author

That is expectation as developer. But real customers are complaining they cannot proceed by clicking "Next" or "Done" on the On-Screen keyboard. As can be seen, it resets the focus to the very top instead of going to the "Pay" or the "Checkbox". I cannot share the video from customers as it includes sensitive data, but many are confused and mad about this reset of focus, they're expecting that it will go to the next checkbox/button.

@jaynewstrom-stripe
Copy link
Collaborator

So is your ask for the focus to go to the pay button via the keyboard next action after the user enters their email?

@acadetorres
Copy link
Author

The last field is Zip Code. So after clicking "Next" or "Done" on the On-Screen keyboard, customers are expecting it to go to the "Checkbox" or the "Pay"

image

When we opened this issue weeks ago, we are totally unable to add card, but after disabling Link we somehow got that workaround you mentioned, but customers are still sending complains regarding this confusing behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triaged Issue has been reviewed by Stripe and is being tracked internally
Projects
None yet
Development

No branches or pull requests

3 participants