Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting card params programatically #637

Open
Josefnm opened this issue Oct 8, 2021 · 4 comments · May be fixed by #1044
Open

Setting card params programatically #637

Josefnm opened this issue Oct 8, 2021 · 4 comments · May be fixed by #1044
Labels
enhancement New feature or request

Comments

@Josefnm
Copy link

Josefnm commented Oct 8, 2021

Is your feature request related to a problem? Please describe.
I would like to use a card scanner to enter card details into a CardField, specifically on ios. It's something our customers have requested.

Describe the solution you'd like
A method on CardField ref that allows me to set the card params programatically.

It would also be cool if you made a react native component for stripes ios scanner, but I understand that it's probably not a priority.

Describe alternatives you've considered
I can patch it myself, but it adds extra work when I have to update the package in the future. I have looked at the payment sheet that has the card scanner built in, but it unfortunately doesn't fit our use case in other regards.

@lemettrepaul
Copy link

@arekkubaczkowski is even for just the "ref" it is needed to be implemented in stripe-ios first ?

@colinmatthewlee
Copy link

colinmatthewlee commented Apr 23, 2022

+1

Use case:

  • Our QA process involves testing a wide range of cards as provided at https://stripe.com/docs/testing (ie. Mastercard debit, Visa credit card, card that fails with incorrect_cvc, etc.)
  • Instead of having to manually enter the 16-digit card number, expiry date, and cvc every time, it would be nice to have a dev tool containing a list of cards with the card details from fixture data so that a QA user can easily select a card and test its outcome.
  • A dev tool like this would require the ability to set the card details programmatically

@neiker
Copy link

neiker commented Jul 13, 2022

Another use case:

  • Hide the CardField and use a custom UI over it

@crechet
Copy link

crechet commented Jan 19, 2023

Yes, the combination of card scanner feature and CardField component could be useful for our solution too. Do you have any plans about it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants