#testing_code
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/1293880192590155786
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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
Hi, let me help you with this.
ok
Are you building a new Stripe integration?
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?
Yes. Calling stripe.createPaymentMethod() won't necessarily allow you to reuse the payment method in the future.
To save a Payment Method for future usage you can use this: https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements#save-payment-methods
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
If you need to inspect the Payment Method before confirming the payment you can use Confirmation Tokens: https://docs.stripe.com/payments/build-a-two-step-confirmation