#vickyh_docs

1 messages ¡ Page 1 of 1 (latest)

mossy plankBOT
#

👋 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.

dull basinBOT
#

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.

karmic kettle
#

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

hollow plinth
#

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.

karmic kettle
hollow plinth
#

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.

karmic kettle
#

the issue is, I couldnt make the button show in incognito on my code

hollow plinth
#

would real customers be visiting your site in incognito and expecting to be able to pay with wallets?

karmic kettle
#

it's empty and not mounting any button

hollow plinth
#

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?

karmic kettle
karmic kettle
#

I didnt get any button here in incognito

hollow plinth
#

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.

karmic kettle
#

okay let me try

#

but If I set it as always

#

meaning it would show also on safari and the other browser right?

hollow plinth
#

no, it only shows on browsers that can support it

karmic kettle
#

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!

hollow plinth