#mastjoe_api
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/1365308944460943370
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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?
@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"?
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
Hmm, I see. Is there any possible work around?
What is your bigger goal? Why do you want google pay to be selected?
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
In that case, you might want to also include the Express Checkout Element on the payment page, alongside Payment Element: https://docs.stripe.com/elements/express-checkout-element
then support wallets will be presented there and possible for your customers to complete "one click" payments with their wallet of choice