#guizhong_api

1 messages ยท Page 1 of 1 (latest)

rustic trenchBOT
#

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

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

civic coral
#

๐Ÿ‘‹ happy to help

#

what are you using on the frontend? is it a PaymentElement? an Express Checkout Element?

royal geyser
#

expressCheckout

#

It can monitor whether the memory card is loaded correctly.

#

However, it cannot monitor whether Google Pay is loaded.

civic coral
#

it's the ready event that you should listen to

#

not the loadstart

#

and it's on the expressCheckoutElement

#

not the element

royal geyser
#

Okay, give me ten minutes to test it, I'll get back to you later.

royal geyser
#

Hello, I've tested it, and Express Checkout works now.

#

However, I have another question.

#

I want to create a Google Play account using payment at checkout.

#

However, it will generate a payment list for me.

civic coral
#

not sure I understand what you mean

#

would you mind elaborating? maybe with some screenshots as well

royal geyser
#

My designated website only displays the designated payment method; other websites require other payment methods.

civic coral
#

I'm not following

royal geyser
civic coral
#

you want to only show Google Pay?

royal geyser
#

yes

#

Created using elements.create('payment', options?)

royal geyser
#

Can I create an element using payment, or is expressCheckout the only option?

civic coral
#

to only show Google Pay you mean?

#

PaymentElement shows different types of payment methods but to enable Google Pay you need to enable 'cards' which would then give you a PaymentElement with cards option as well

royal geyser
#

Oh, you mean if I want to display Google Pay as a payment option, it will show as a card payment, which doesn't meet my needs.

civic coral
#

yes, if you want to use the PaymentElement instead of the ExpressCheckoutElement

#

but if you're only using the ECE cards won't show up

rustic trenchBOT
royal geyser
#

Okay, then I'll use express Checkout

#

Thank you for your help.