Closed MrLightful closed 1 year ago
I agree it is not consistent with the API docs, however the brand mappers are coming from the Stripe native sdks and are out of our control. See https://github.com/flutter-stripe/flutter_stripe/blob/eab98c0d22d5d349f400008096831aaffaf8cf4a/packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk/Mappers.kt#L89
So closing this issue .
Describe the bug
CardFieldInputDetails
returns brand name inconsistent with Stripe's API.To Reproduce Steps to reproduce the behavior:
CardField
widget on screen;onCardChanged
callback which will print card's brand (card.brand
);MasterCard
.Expected behavior Stripe's API operates with brand names as lowercased names ("Card brand. Can be
amex
,diners
,discover
,jcb
,mastercard
,unionpay
,visa
, orunknown
" - Stripe API Docs).Smartphone / tablet