#tommy-kenton_code
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/1267793799933853768
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi! when/where does this error/warning happen? what's the connection to Google Pay? Do you have a link to the page with a problem?
Yes, I have a ngrok server.
It is in test mode but only shows Google pay and I'm on chrome and in express it loaded link PayPal etc but on NextJS it wont.
I'm a bit lost. When I visit that page I see that you're using https://stripe.com/docs/stripe-js/elements/payment-request-button , and right now for me it shows Link.
You mention Paypal but that integration can not support Paypal(the https://docs.stripe.com/elements/express-checkout-element can).
what are you expecting to see overall?
well that screenshot is for the ExpressCheckoutElement integration, but the code you're using is not the ExpressCheckoutElement, it's the PaymentRequestButton(check the links in my last message).
So that's all normal and expected.
How can I load all of them in NextJS?
what is them in all of "them"?
I want all of the express buttons in my NextJS/React/Typecript website.
E.g PayPal, Link, Google Pay.
then I'd suggest integrating the ExpressCheckoutElement that can suport showing multiple wallet buttons(the screenshot you posted of our docs earlier), and not the PaymentRequestButton you're actally using in the code, which only supports one wallet at a time.
How can I use multiple at once?
didn't I just answer that?
Without using Stripe's prebuilt form.
in case you're confused, the "Express" in "ExpressCheckoutElement" is just the name of our product, it has absolutely nothing to do with the express.js webserver or imply that it wouldn't work in Next.js.
not sure what you call "prebuilt form". Anyway, can you check my previous replies and links in detail and let me know what is unclear specifically? happy to clarify.
Can I not load it like this in NextJS?
yes, you can , of course.
I am a bit confused, sorry.
I told you how: then I'd suggest integrating the ExpressCheckoutElement that can suport showing multiple wallet buttons(the screenshot you posted of our docs earlier), and not the PaymentRequestButton you're actally using in the code, which only supports one wallet at a time.
the docs for building the integation are at https://docs.stripe.com/elements/express-checkout-element (the page you have open and are taking the screenshots from)
Im checking it out now, I'll get back soon, thanks so far.
This is in JS?
yes
Im using typescript? So I just have to convert it? Im new to typescript etc.
Still just loading Google Pay.
typescript is a superset of javascript so they're compatible. What I'd suggest is just turning off typescript for now if you just want to build the integration and don't actually know TS well. When you're more familiar with it:
https://github.com/stripe/stripe-js?tab=readme-ov-file#typescript-support
I need typescript though? It just still loads google pay is there any examples online?
I've done everything in that...
No, Stripe.js works with JavaScript too.
Typescript = Javascript with types. So everything fine ๐
I am not sure I understand what's exactly the challenge you're facing. Could you please elaborate?
I cannot load the express-checkout buttons in my project.
@languid lodge @spice mason
Why, is it still not working OMG in js
What do you mean by "cannot load" exactly?
Like it just loads Google Pay, I dont get it?
btw request buttons are outdated
Is that why it is just showing Google Pay?
Sorry, I don't understand what you mean by this.
Like it just loads Google Pay, I dont get it?
What are you trying to achieve exactly?