#beastboy_docs
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/1225583452624261181
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐
- How are you creating Payment Methods using the Card Element?
- Do you know the Customer ID when they are creating Payment Methods?
- I'm thinking of using the confirmCardSetup but I'm honestly just not sure
- Yes
Well let's be certain about the first point.
So first can you provide the Stripe.js code you are using with the Card Element and then can you tell me what you are confirming (Payment Intent, Setup Intent, etc.)
Hmm so I haven't actually written the code yet, I'm stuck on the docs trying to figure out which method I should use to accomplish this (which is why I came here).
I'm quite new to stripe so I'm still getting used to the language. I believe this is a setup intent (save this payment to their subscription to be charged in the future)
Okay if you have not built anything yet then please don't use the Card Element
What I think would work best for you is this integration: https://docs.stripe.com/payments/save-and-reuse?platform=web&ui=elements
When a Customer needs to update their payment method you can use this approach to save it and set it up as the default for future Subscriptions
Well, the Card Element is kind of outdated and not receiving much in the way of updates. If you only ever want to accept cards and you absolutely need the one-line look (or the Split Element look) then it's fine but really we recommend using the Payment Element.
It makes it incredibly easy to add new payment methods when you want to accept them along with a bunch of other features we document here: https://docs.stripe.com/payments/payment-card-element-comparison