question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expose CVC number in `CardField` when `dangerouslyGetFullCardDetails=true`

See original GitHub issue

Is your feature request related to a problem? Please describe.

We use Stripe to take card payments, and a 2nd payment provider to handle Visa Debit payments. We want to use the Stripe CardField component to collect card details & submit them to both Stripe and the Visa Debit payment provider at the same time. In our use case our Visa Debit payment provider provides a client side library which we use to tokenize the payment method before adding it to their system.

We currently are using dangerouslyGetFullCardDetails on the CardField component to get number, expiryYear expiryMonth from the control but note that cvc is not provided. We need cvc to tokenize the information.

Describe the solution you’d like

We would appreciate it if cvc could be exposed as well when dangerouslyGetFullCardDetails=true on the CardField component.

Describe alternatives you’ve considered

Any alternative would involve using a different component or building our own component for Visa Debit information. This would not be ideal.

Additional context

In #280 access to the full card number was granted. In that ticket, providing cvc was considered by @thorsten-stripe but the original requestor there did not require it. This has been requested in and #425, but the use case was not appropriate. I believe @thorsten-stripe was looking for more information on a usecase but one wasn’t identified. I hope our use-case justifies the need for this feature.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

2reactions
charliecruzan-stripecommented, May 5, 2022

@mashaalmemon we will implement this, it will likely be ready for our next release. Please remember that enabling dangerouslyGetFullCardDetails means you are no longer eligible for an SAQ A. See more info here- https://stripe.com/docs/security/guide

0reactions
mashaalmemoncommented, May 8, 2022

@charliecruzan-stripe, I appreciate the super quick turn around time. Regarding the SAQ A understood. For planning purposes, when do you expect the next release to be out/available?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Card verification checks | Stripe Documentation
Card verification code check (CVC). The CVC (also referred to as CVV) is the three- or four-digit number printed directly on the credit...
Read more >
The 'Credit Card Number' Field Must Allow and Auto-Format ...
Allowing spaces in the card number input means that users can type exactly what they see printed on their physical card.
Read more >
How to Change Sub-labels for the Credit Card Field - WPForms
In this tutorial, we'll show you the basics of how you can change the sub-labels on the Stripe Credit Card field using a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found