tipsi-stripe
tipsi-stripe copied to clipboard
card.brand not returned in createTokenWithCard on Android
Before I have submitted the issue
[ X] I have read an installation guide
[ X] I know that for an iOS I need to install pods because I've read the installation guide
[ X] I have read a linking guide and checked that everything is OK like in manual linking guide
[ X] I know that before using tipsi-stripe I need to set options for my app as described in usage guide
The problem
We upgraded from tipsi-stripe 9.0.0 to 9.1.4 and noticed that in an Android environment, providing credit card information to createTokenWithCard passes back a token with the below data set. Livemode is false.
addressCity: null
addressCountry: null
addressLine1: null
addressLine2: null
addressState: null
addressZip: null
cardId:
This data set does not include brand and is no longer present in card details for Android (but is still present in iOS).
Environment
tipsi-stripeversion: 9.1.4- Last
tipsi-stripeversion where the issue was not reproduced (if applicable): 9.0.0 - iOS or Android: Android
- OS version: 10 (Q)
- React-Native version: 0.63.2
Links to logs and sources
Documentation for the expected data set: https://tipsi.github.io/tipsi-stripe/docs/createtokenwithcard.html
For Android, please provide the following sections from android/app/build.gradle:
- android.compileSdkVersion 29
- android.buildToolsVersion 29.0.2
- android.defaultConfig.minSdkVersion 25
- android.defaultConfig.targetSdkVersion 29
Screenshots, GIFs (Must to have)

Code To Reproduce Issue (Good To Have)
import stripe from 'tipsi-stripe'; const token = await stripe.createTokenWithCard(cardData); console.log(token);