#testing_code

1 messages ¡ Page 1 of 1 (latest)

echo stormBOT
#

👋 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/1293880192590155786

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

hardy phoenix
#

While initiating paymentintent,need to show user a pop up asking them if payment method can be saved for future payments, but only a selected few payment methods can be saved directly for off-session usage while others need the user to intiate a setupintent

fresh marsh
#

Hi, let me help you with this.

hardy phoenix
#

ok

fresh marsh
#

Are you building a new Stripe integration?

hardy phoenix
#

A custom integration with paymentintent and stripe elements has already been done

#

The stripe form is embed on a html using elements.mount and on submit paymentintent is called in server side.
Before submitting need to know the payment method selected by user

#

Hey are you still there?

fresh marsh
#

Yes. Calling stripe.createPaymentMethod() won't necessarily allow you to reuse the payment method in the future.

hardy phoenix
#

ok,is there a function or property I can use to know the payment method user has selected before I proceed with paymentintent.create

#

in js side

fresh marsh