Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

card.brand not returned in createTokenWithCard on Android #816

Closed
JakyChen opened this issue Aug 10, 2021 · 1 comment
Closed

card.brand not returned in createTokenWithCard on Android #816

JakyChen opened this issue Aug 10, 2021 · 1 comment

Comments

@JakyChen
Copy link

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

  • tipsi-stripe version: 9.1.4
  • Last tipsi-stripe version 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)

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
Copy link
Collaborator

fbartho commented Jun 20, 2023

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: #842

@fbartho fbartho closed this as completed Jun 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants