stripe / stripe-android

Stripe Android SDK
https://stripe.com/docs/mobile/android
MIT License
1.3k stars 649 forks source link

[BUG] The device name of the payment made from an Android device does not appear on the dashboard #9642

Open adizdaroglumyne opened 1 week ago

adizdaroglumyne commented 1 week ago

Summary

When I do a payment from any Android device, the device name cell is blank on dashboard. But when we do a payment via iOS or web, we see the device name as non-blank. Here it is the picture from our dashboard:

Screenshot 2024-11-18 at 13 35 51

Code to reproduce

override suspend fun presentPaymentSheet(
        paymentSheet: PaymentSheet?,
        stripePaymentIntentResponse: StripePaymentIntentResponse
    ) {
        val environment = if (BuildConfig.FLAVOR == "dev") {
            PaymentSheet.GooglePayConfiguration.Environment.Test
        } else {
            PaymentSheet.GooglePayConfiguration.Environment.Production
        }
        paymentSheet?.presentWithPaymentIntent(
            paymentIntentClientSecret = stripePaymentIntentResponse.clientSecret,
            configuration = PaymentSheet.Configuration(
                merchantDisplayName = "MyApp",
                customer = PaymentSheet.CustomerConfiguration(
                    stripePaymentIntentResponse.customerId,
                    stripePaymentIntentResponse.ephemeralKey
                ),
                allowsDelayedPaymentMethods = true,
                googlePay = if (Build.VERSION.SDK_INT >
                    Build.VERSION_CODES.Q
                )
                    PaymentSheet.GooglePayConfiguration(
                        environment = environment,
                        countryCode = "US",
                        currencyCode = "USD"
                    ) else null
            )
        )
    }

Android version

Doesn't matter

Impacted devices

Doesn't matter

Installation method

Groovy Gradle Dependency

Dependency Versions

kotlin:1.9.0 stripe-android:21.0.1 Android Gradle Plugin:8.4.0 Gradle:8.6

SDK classes

-

Video

-

Other information

-

davidme-stripe commented 5 hours ago

Thanks for filing this! We're investigating this now.