#mastjoe_api

1 messages ¡ Page 1 of 1 (latest)

wanton hatchBOT
#

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

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

winged lintel
#

Hi, let me help you with this.

#

What do you mean by pre-select exactly?
Could you please share a screenshot of what you observe currently?

wanton hatchBOT
unique mango
#

@winged lintel I mean when the checkout element loads the payment methods applicable/available are shown in the checkout. Amongst these payment methods presented, is there a way to automatically select (code-wise) one of these payment methods?

#

In other words, I mean given the above image, is there a way to ensure "Google Pay" option is selected instead of "Card"?

livid juniper
#

The first one should generally be selected, yes

#

Wallets are a special case because they are not initial present in the list of options, they are insert asynchronously once we determine they are supported

#

And it would be potentially jarring to have the form change on the customer at that point

unique mango
#

Hmm, I see. Is there any possible work around?

livid juniper
#

What is your bigger goal? Why do you want google pay to be selected?

unique mango
#

Most of our users prefers to make payment using this wallet methods, so it make sense to have them (wallet payment methods) presented first or selected at first for better UX and convenience

livid juniper
#

then support wallets will be presented there and possible for your customers to complete "one click" payments with their wallet of choice