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

Credit card icon not displaying on Android real devices and some iOS devices #1682

Open
kishoreraj87 opened this issue Jul 1, 2024 · 3 comments

Comments

@kishoreraj87
Copy link

kishoreraj87 commented Jul 1, 2024

Describe the bug

The credit card icon for Stripe payment is not displaying in our React Native app. We are using @stripe/stripe-react-native version 0.37.3. The base64 string received for the icon is blank.

{
  "isChecked": true,
  "onPress": [Function anonymous],
  "onSheetPress": [Function anonymous],
  "stripePaymentOption": {
    "image": "iVBORw0KGgoAAAANSUhEUgAAAJ4AAABxCAYAAAAklxosAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAE4SURBVHic7dIxAQAgDMAwwL/n4YIeJAp6dM/MLHjs1AH8yXgkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCSMR8J4JIxHwngkjEfCeCQu8aME3qOapfYAAAAASUVORK5CYII=",
    "label": "····4242"
  }
}

Expected behavior

The credit card icon should display properly across all devices (both Android and iOS).

Screenshots

Android
Screenshot 2024-07-01 at 11 44 32 AM

iOS
Screenshot 2024-07-01 at 11 44 53 AM

Environment

  • React Native version: [e.g., 0.72.3]
  • Platform: Android, iOS
  • Stripe SDK version: 0.37.3
@kishoreraj87 kishoreraj87 changed the title Stripe payment CC icon not displaying on Android real devices and some iOS devices Credit card icon not displaying on Android real devices and some iOS devices Jul 2, 2024
@Mauricio-sy
Copy link

#1690

@Mauricio-sy
Copy link

Zl

@ThucPT0812
Copy link

I am experiencing a similar issue on an Android device, where the credit card brand icon does not display when presenting the credit card input form. However, the icon appears after entering two numbers. Is this a library issue, and should I wait for the latest update, or is there a way to handle this issue? Thank you.
ImportedPhoto_1727243182902
ImportedPhoto_1727243170578

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

No branches or pull requests

3 participants