#blueribbon369_code

1 messages ยท Page 1 of 1 (latest)

hearty hornetBOT
errant timberBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

hearty hornetBOT
#

๐Ÿ‘‹ 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/1250821604066201612

๐Ÿ“ Have more to share? Add details, code, screenshots, videos, etc. below.

lapis vapor
#

Sounds like you're using the card element not payment element then

glossy basin
#

I am building on a ecommerce platform called Medusa and The above code is on a next.js 14 react storefront..
I followed this documentation from medusa official stripe plugin

https://docs.medusajs.com/plugins/payment/stripe

Learn how to integrate Stripe with the Medusa backend. Learn how to install the Stripe plugin on the Medusa backend and integrate it into a storefront.

lapis vapor
#

Yeah that's a third party plugin

#

Likely they're using the card element

#

Payment Element is what you want if you want other payment method options

glossy basin
#

I am using

import { loadStripe } from '@stripe/stripe-js';
import { Elements, CardElement, useStripe, useElements } from '@stripe/react-stripe-js';

lapis vapor
#

Yeah I mean i clearly see cardelement in the imports

glossy basin
#

The official medusa.js packages and Element

lapis vapor
#

So that's the issue

glossy basin
#

Okk.. so instead of cardElement I should be using Payment Element?

#

Right?

lapis vapor
#

yep

glossy basin
#

Thank you so much

#

I'll do that