#vickyh_docs
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/1265616328006434837
đ 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.
- vickyh_docs, 7 hours ago, 27 messages
- vickyh_error, 2 days ago, 18 messages
normal and incognito comparance on the docs
mode: 'payment',
amount: this.userCurrency === 'USD' ? parseInt(this.amount * 100, 10) : totalPrice,
currency: this.userCurrency.toLowerCase(),
}
const options = {
// Customizable by using the Appearance API.
paymentMethods: {
amazonPay: 'never',
link: 'never',
paypal: 'never',
applePay: 'never',
},
buttonTheme: {
applePay: 'white',
googlePay: 'white',
},
}
const elements = this.stripe.elements(initialOptions)
const expressCheckoutElement = elements.create('expressCheckout', options)
expressCheckoutElement.mount('#express-checkout-element')
document.getElementById('payment-button').style.display = 'none'
document.getElementById('express-checkout-element').style.display = 'block'```
result in normal browser with logged in email
hi! it should just show up even if not set up(as you say it does in the docs). I tried my own ExpressCheckoutElement integration in a Chrome profile not logged into Google and it's the same as the docs, you get the "buy with" button that then sets it up. Not showing up in Incognito seems normal since incognito is special and mostly doesn't have access to browser payment methods.
but based on second image, the docs link seems able to show the button even tho it's incognito
fair. So what exactly is the problem/issue you're facing? I don't really understand to be clear.
I wish to have the button appear even though user doesnt have google pay set up
it should just do that, and I confirmed that just now using a Chrome profile not logged into Google.
the issue is, I couldnt make the button show in incognito on my code
would real customers be visiting your site in incognito and expecting to be able to pay with wallets?
it's empty and not mounting any button
but the screenshot you posted earlier shows it does appear in incognito?
if you say it's not working on your own site, do you have a link to that page so I can try it on my side?
first screenshot is from https://docs.stripe.com/elements/express-checkout-element
this screenshot is my code
I didnt get any button here in incognito
do you have a link to that page so I can try it on my side?
also did you see the section in the docs that says this:
The demo sets the wallets parameter to 'always' for all wallets
so you can try doing that too in your own code.
If you want to always show Google Pay when the customer is using a supported platform, you can set its property in paymentMethods to always.
okay let me try
but If I set it as always
meaning it would show also on safari and the other browser right?
no, it only shows on browsers that can support it
thanks for the explanation, do stripe has any code example for express checkout element?
if im not mistaken I saw some example on apple pay and gpay button using payment request on stripe github.
it works!
thanks for the pointer!
sure, the docs page you are looking at