#jovan-update-pm
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
Hi 👋
What are you actually trying to do here?
I want the customer to update his card details (e.g. expiry date)
You can either use a Setup Intent+Payment Element to create a new PM representing the updated card, or you can collect these details yourself and pass them in the API call you linked to.
Is it possible to pre-populate the PaymentElements? Or the user will input again his card number, expiry date, and cvv?
No you cannot pre-populate the card details. The only default values you can set are defined here: https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-defaultValues