tipsi / tipsi-stripe

React Native Stripe binding for iOS/Android platforms
MIT License
1.14k stars 527 forks source link

card.brand not returned in createTokenWithCard on Android #816

Closed JakyChen closed 1 year ago

JakyChen commented 3 years ago

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: country: currency: null cvc: null expMonth: expYear: fingerprint: null last4: name: null number: null

This data set does not include brand and is no longer present in card details for Android (but is still present in iOS).

Environment

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:

Screenshots, GIFs (Must to have)

Screen Shot 2021-08-10 at 3 41 24 PM

Code To Reproduce Issue (Good To Have)

import stripe from 'tipsi-stripe'; const token = await stripe.createTokenWithCard(cardData); console.log(token);

fbartho commented 1 year ago

Closing this ticket, so that new users don't think this project is still active.

Stripe does not want you using this, and you will find pain if you do; Please migrate to the official @stripe/stripe-react-native package, for your user's safety, and your developer's sanity!

See more: https://github.com/tipsi/tipsi-stripe/issues/842