#mahima-thacker_error
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/1294254600462794775
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
This is Next.js right? I would assume the page/component you're trying to render the Payment Element in is a server component? You likely need to declare it as a client side component: https://github.com/vercel/next.js/blob/canary/examples/with-stripe-typescript/app/components/ElementsForm.tsx#L1
Thank you for the quick response, I have defined both pages as a client component
You'll need to share some more code and/or a reproduction I'm afraid
Can't really help with the limit info you've shared!
OK, and where do you invoke the <PaymentForm /> component?
And when/how does the error occur? On page load? When you click something?
Yes, on page load. I can see the Input for the card details etc but not getting other elements. I have implemented lcl.host as well.
Which 'other elements'?
Options to change the payment methods
This is the URL generated using LCL.host:- https://summit-listings-frontend.localhost:44359/payment/
I suspect that's unrelated to the error and probably an account configuration issue. What's the pi_xxx ID of an intent you're using to render the Element?
NEXT_PUBLIC_PUBLISHER_KEY = "pk_test_51Q3h80LvjjGjabAacuveZZfVQFAEKbk8QBlNyXlNs0RioGgc7Fe6mbpzn0LzUUoKpjRvmCD5m9rHKrcU8IXZSTVr005G6vWAH7"
No, that's your publishable key
Which ID then?
Nevermind, I found one: pi_3Q8gzbLvjjGjabAa1aIdmmHz
Oh, That's great
Checking
Okay, no worries
This doesn't work for me
It's for localhost that's why
Hmm, your code is a bit confused. You're combining both deferred and non-deferred integration paths. Can you remove the conditional rendering from the <PaymentElement /> component? This line:
{clientSecret && <PaymentElement />}
You're initialising the Elements with amount, currency params so you don't need a client secret to render the Payment Element
Actually, I am new to stripe and I followed this tut:- https://www.youtube.com/watch?v=2JDKquIMJws
Okay, let me give it a try
This is how it looks like after removing clientSecret but It is not showing GPay option
Are you based in India? Seems that way from the API requests
Because wallets are not supported there: https://support.stripe.com/questions/supported-payment-methods-currencies-and-businesses-for-stripe-accounts-in-india#:~:text=Google Pay and Apple Pay unavailable for merchants and customers in India on Stripe Checkout and Stripe Elements.
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Yep, I am from India. Oh okay, got it
Thanks for the help:)