#day_paymentintent-confirm

1 messages ¡ Page 1 of 1 (latest)

wheat phoenixBOT
#

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

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

blissful flax
#

i am assuming that i need to send the elements to the backend, but i'm not sure to which parameter

lethal turtle
#

@blissful flax You can't confirm a PaymentIntent server-side like this with payment_method_data unless you send raw card details (which you shouldn't do). So remove payment_method_data entirely, and confirm: true and instead confirm that PaymentIntent client-side for example with PaymentElement

#

day_paymentintent-confirm

blissful flax
#

ok, so i should not send the billing details to the backend either?

lethal turtle
#

the billing details should be associated with the PaymentMethod so it's usually passed client-side during confirmation

blissful flax
#

ok that makes sense then. i will try this

#

is there an api in stripe that will automatically calculate tax?

#

based on address

lethal turtle
blissful flax
#

thanks

blissful flax
#

last question i think, can i send metadata on payment confirmation?

lethal turtle
#

no, it's something you set on creation instead