#blueribbon369_code

1 messages ¡ Page 1 of 1 (latest)

tulip idolBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1250736656076767324

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

empty turret
#

First of all, why you are using confirmCardPayment? you should be using confirmPayment

#

You can't pass the desctipnio via the confirm(Card)Payment method

#

you need to create or update the payment_intent with the description from your backend.

#

Between, the payment_intent pi_3PR9SOSEZaK92Ulo10AJMfcu doesn't have description

cerulean crane
#

I am builing e-commerce with this platform called medusa.js and here is thier documentation for stripe..
https://docs.medusajs.com/plugins/payment/stripe

And in 'build a custom storefront' section they have used this as an example..

return stripe.confirmCardPayment(clientSecret, { payment_method: { card: elements.getElement(CardElement), billing_details: { name, email, phone, address: { city, country, line1, line2, postal_code, }, }, }, }).then(({ error, paymentIntent }) => { // TODO handle errors client.carts.complete(cartId).then( (resp) => console.log(resp) ) })

empty turret
#

You didn't passed a description according to the creation request of that intent (req_nxqEOWuOAAplvB)

empty turret
cerulean crane
#

I can't believe i overlooked that..

#

Thank you for your time

#

I think this should solve this