#salim-bt_api

1 messages ¡ Page 1 of 1 (latest)

static cloudBOT
#

👋 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/1390357660834205766

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

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.

versed parcel
static cloudBOT
versed parcel
#

i use express checkout elements

young summit
#

Hi there

#

That is your own email input, correct?

#

And you are saying you only want to allow checkout with wallets via Express Checkout Element if that is completed?

versed parcel
versed parcel
#

email required first, and then buttons should work

young summit
#

Gotcha, in that case you would want to wait to mount the buttons until the email is input.

#

Hmm actually, you could also use the confirm Event to check the status of the input

#

And throw an error instead of calling elements.submit() if the input isn't filled.

#

I believe that should work as well.

versed parcel
#

thank you! if there other options?

young summit
#

No other option that I can think of, no.

versed parcel
#

can you give more info about the last method?

#

refrences etc

young summit
#

When the expressCheckoutElement.on('confirm',.... Event fires then in that handler you would check your input.

versed parcel
#

if email not filled and i click gpay button, gpay ui will not appear right?

#

in other word, buttons will not work if email not filled

young summit
#

Correct -- you would throw an error in place of calling elements.submit() which is what triggers the GPay modal to appear.

versed parcel
#

Thanks man