#blueribbon369_code
1 messages ¡ Page 1 of 1 (latest)
đ 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.
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
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) ) })
You didn't passed a description according to the creation request of that intent (req_nxqEOWuOAAplvB)
Okkky Got it..
We don't know here medusajs, but I think you can set a default payment description following this part:
https://docs.medusajs.com/plugins/payment/stripe#:~:text=payment_description%3A a string that is used as the default description of a payment if none is provided.