#chris_paymentelement-savedpms
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1280924583859458089
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Are you trying to get the Payment Element to autofill all the fields and just allow the customer to update them if they want? (e.g. expiration date, cvv, etc.)
Auto-filling would be nice, but not required. The most important aspect is allowing user to EDIT the existing payment method (even if they have to fill-out all of the inputs). We want to avoid the current outcome of a NEW payment method being created.
As far as I know, a new Payment Method will always be created from customer input on the Payment Element. That goes for whether or not they use the existing Payment Method.
OK, thank you for looking into this. One last question regarding this... What is the purpose/benefit of assigning the "PaymentMethod" parameter when creating a SetupIntent.
https://docs.stripe.com/api/setup_intents/create#create_setup_intent-payment_method
We assumed this would allow the EDIT of that existing Payment Method, but maybe there is some other purpose for this parameter.
I think that's intended for workflows that don't use Payment Element (e.g. if you wanted to confirm a Setup Intent from the back-end with an existing Payment Method)
Ah, that makes sense. OK, thank you!!
Sure thing!
@ornate moat you can also show previously saved/attached PaymentMethods directly in PaymentElement. See https://docs.stripe.com/payments/save-customer-payment-methods#display-existing-saved-payment-methods