#antoineb_api
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/1425131990784409682
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there, it would create a new payment method unless you use a pre-existing one and pass it with the payment_method parameter
Ok great! thanks
And what about cards? Let's say PaymentElement displays existing cards and user selects one of them. I use a setup_intent to confirm the booking. Will it create a new payment method or just uses the existing one?
if you've set up the payment method for future usage and the user selects that payment method from the Payment Element, it'll use the existing one
OK great. And for paypal, even if I set previously a paypal payment method for future usage, if I click on the paypal option for a new booking, it will create a new payment method right?
this is all determined by whether you're setting the payment_method parameter when you're creating the Payment Intent / Setup Intent, I'd recommend referring to the following guide for how to re-use Paypal payment methods https://docs.stripe.com/payments/paypal/set-up-future-payments?web-or-mobile=web&payment-ui=direct-api#web-create-on-session-payment-intent