#josha_code

1 messages ยท Page 1 of 1 (latest)

stiff lichenBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

restive elbow
#

Hello

#

You just want to collect a PaymentMethod here you mean?

languid narwhal
#

Correct. Specifically, a card-type PaymentMethod.

restive elbow
languid narwhal
#

Ok, thanks. I'll give this a shot.

While I have you, do you know if this will require any backend changes, if we were already doing same with the Card Element UI framework?

restive elbow
#

Yeah likely some minor tweaks

#

You need to return the Customer ID here to the frontend

languid narwhal
#

I'm still refamiliarizing myself with our existing implementation but, off the cuff, it seems like the SetupIntent is a new step here, maybe?

restive elbow
#

Potentially -- it really depends on what you were doing before.

#

It is entirely possible that previously you were just collecting a Token or PaymentMethod on your frontend and passing that to your backend and then handling stuff there.

#

As opposed to calling your backend to help handle stuff on your frontend (this flow)

languid narwhal
#

Ok... I'll dig into this and report back here if I encounter any hangups. Thanks for the info.

restive elbow
#

๐Ÿ‘

languid narwhal
#

Does a SetupIntent have a unique, standardized prefix, like other API objects? (e.g. cus_, ephKey_, etc)

#

Looks like maybe seti_

restive elbow
#

Yep

#

seti_xxxx

languid narwhal
#

Operational question: Can other users add comments to this Discord thread? Perhaps it'd be helpful for my backend colleague to drop in here with questions about the same topic.

restive elbow
#

Yep

#

However these threads close after a period of inactivity

#

But you can always start a new one if necessary