#tommy-kenton_code

1 messages ยท Page 1 of 1 (latest)

celest cedarBOT
#

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

spice mason
#

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?

lilac owl
#

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.

spice mason
#

what are you expecting to see overall?

lilac owl
spice mason
#

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.

lilac owl
spice mason
#

what is them in all of "them"?

lilac owl
#

I want all of the express buttons in my NextJS/React/Typecript website.

#

E.g PayPal, Link, Google Pay.

spice mason
#

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.

lilac owl
#

How can I use multiple at once?

spice mason
#

didn't I just answer that?

lilac owl
#

Without using Stripe's prebuilt form.

spice mason
#

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.

lilac owl
#

Can I not load it like this in NextJS?

spice mason
#

yes, you can , of course.

lilac owl
#

I am a bit confused, sorry.

spice mason
#

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.

lilac owl
spice mason
#

yes

lilac owl
# spice mason yes

Im using typescript? So I just have to convert it? Im new to typescript etc.

celest cedarBOT
lilac owl
#

Still just loading Google Pay.

spice mason
lilac owl
lilac owl
languid lodge
#

No, Stripe.js works with JavaScript too.

lilac owl
#

I'm on about Typescript.

brazen plover
languid lodge
#

I am not sure I understand what's exactly the challenge you're facing. Could you please elaborate?

lilac owl
lilac owl
#

@languid lodge @spice mason

languid lodge
#

What do you mean by "cannot load" exactly?

lilac owl
brazen plover
lilac owl
languid lodge
#

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?

lilac owl
#

Fixed, I was using deprecated method.

#

@brazen plover Thanks, I saw the demo on deprectaed version and it was just Google that is why I was getting just Google!!

languid lodge
#

Payment Request Button normally shows just one button. Is that what was unexpected?

#

Express Checkout Element indeed supports multiple payment method types.