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] RTL Card Number Input Display Bug #10024

Open
shai-galleon opened this issue Jan 29, 2025 · 1 comment
Open

[BUG] RTL Card Number Input Display Bug #10024

shai-galleon opened this issue Jan 29, 2025 · 1 comment
Labels
bug PaymentSheet triaged Issue has been reviewed by Stripe and is being tracked internally

Comments

@shai-galleon
Copy link

RTL Card Number Display Bug in Stripe Android SDK

Summary

When the app is running on a device set to RTL (Right-to-Left) language, the card number input field displays the entered numbers in reverse order, making the card number incorrect.

Expected Behavior

The card number should maintain its left-to-right format regardless of the device's language settings:

  • Entered/Expected: 1234 5678 9012 3456

Actual Behavior

The card number is being displayed in reverse order:

  • Displayed: 3456 9012 5678 1234

Steps to Reproduce

  1. Set device language to an RTL language (e.g., Arabic, Hebrew)
  2. Open the app
  3. Navigate to the card input form
  4. Enter a card number
  5. Observe the number formatting

Environment

  • Stripe SDK Version: 20.53.0
  • Device Type: All devices
  • Installation Method: Gradle dependency

Dependencies

implementation "com:stripe:stripe-android:20.53.0"

Additional Information

Impact

This bug severely impacts users in RTL regions as it makes credit card entry impossible due to incorrect number formatting.

Priority

High - This is a blocking issue for users in RTL regions attempting to make payments.

@wooj-stripe
Copy link
Contributor

wooj-stripe commented Jan 29, 2025

Thanks writing in. I've been able to reproduce this issue and have added it into our internal tracking system. We will update this thread with any updates.

Note that the fix for stripe/stripe-android#3515 was for card element, which is working fine in our latest version. The problem reported is in PaymentSheet which seems to have never been working with RTL languages, so this does not seem to be a regression.

@wooj-stripe wooj-stripe added triaged Issue has been reviewed by Stripe and is being tracked internally PaymentSheet labels Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug PaymentSheet triaged Issue has been reviewed by Stripe and is being tracked internally
Projects
None yet
Development

No branches or pull requests

2 participants