React-stripe-elements: update existing card details

Created on 18 Jul 2017  ·  9Comments  ·  Source: stripe/react-stripe-elements

Is there a way to update existing card details using this library?

Most helpful comment

Any new changes on this issue?

All 9 comments

Sorry, we don't have anything like that yet!

Is this still the case? No way to update existing card details using stripe elements? Any alternative solution?

@MovingGifts if what you want is to show the existing card number in a form, and let the user update it, then no, sorry. Stripe abstracts away raw credit card details via Tokens, and this would require having access to the raw number.

However, if what you want is to show a new credit card entry form, allow the user to type in a new number, and save that, you can definitely do that right now. Just create a new Token for the new details, and save that to your Customer.

@atty-stripe Got it, thank you for clarifying :)

Any new changes on this issue?

@atty-stripe Any new information on this issue?

Sorry folks, I no longer work on this product, but will pass along to the Stripe.js team. It would be useful if you could share the desired end user experience (either in words, or sample design mockups) so we can understand your needs better.

@abhijithss2010 @vbk6, could you clarify your use cases? What part of the card details do you need to update, and in what context?

You can collect and update most Payment Method or Card Sources fields yourself.

If you want to use a saved card for a payment, but ask the user again for their CVC, you can now do so: https://stripe.com/docs/payments/save-during-payment#web-recollect-cvc

Updating the card number of an existing payment method or source is not possible. What you should do is create a new method / source, attach it to your customer, and optionally update your customer to use the new method / source as default.

Please reach out to Stripe Support if you have further questions regarding your integration.

I am chasing CVC updating. I have come across some notes worth sharing.

  • During testing, use card number 4000000000000127 to a have transactions fail for “Charge is declined with an incorrect_cvc code”

    • This sets up the scenario that someone entered a CVC that didn’t fail until transaction attempted

  • @hofman-stripe your comment seems to suggest I can only recollect CVC every time as an option

    • The docs you linked do not have an CVC update abilities

  • In the case of card expiring and a new CVC being issued, no actions MAYBE required because Stripe auto attempts those types of via communications with card intuition. Read more here
  • ULTIMATELY, I can find no way to update a cards CVC even with Stripe elements. We were hoping we would mount an element with an existing Payment Method id to ONLY update the CVC but nothing like the exists
  • It seems we can ONLY require complete re-entry of a card with invalid CVC

Resources

Was this page helpful?
0 / 5 - 0 ratings

Related issues

michael811 picture michael811  ·  5Comments

iMerica picture iMerica  ·  5Comments

drwpow picture drwpow  ·  4Comments

cypcz picture cypcz  ·  4Comments

shortcircuit3 picture shortcircuit3  ·  5Comments