#beastboy_docs

1 messages ยท Page 1 of 1 (latest)

tidal oakBOT
#

๐Ÿ‘‹ 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.

hollow lodgeBOT
broken flume
#

Hi ๐Ÿ‘‹

  1. How are you creating Payment Methods using the Card Element?
  2. Do you know the Customer ID when they are creating Payment Methods?
indigo minnow
#
  1. I'm thinking of using the confirmCardSetup but I'm honestly just not sure
  2. Yes
broken flume
#

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.)

indigo minnow
#

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)

broken flume
#

Okay if you have not built anything yet then please don't use the Card Element

#

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

indigo minnow
#

Hmm okay

#

why do you suggest this?

broken flume
#

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