#chau_api

1 messages ยท Page 1 of 1 (latest)

fossil islandBOT
quick mistBOT
#

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.

fossil islandBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1252540597278085131

๐Ÿ“ Have more to share? Add details, code, screenshots, videos, etc. below.

cold echo
#

Hi

#

Could you please help me

#

I add google pay to my website

#

but it does't display

junior dock
#

Hi, how did you integrate it exactly?

cold echo
#

I will share code

junior dock
#

Just the type of integration is fine for now

cold echo
#

const express = {
wallets: {
applePay: 'always',
googlePay : 'always'
}
}

#

this.expressCheckoutElement = this.stripeElements.create('expressCheckout', {options: express});
this.expressCheckoutElement.mount('#express-checkout-element');
const expressCheckoutDiv = document.getElementById('express-checkout-element');
// expressCheckoutDiv.style.visibility = 'hidden';
// expressCheckoutDiv.style.height = '0px';
this.expressCheckoutElement.on('ready', ({availablePaymentMethods}) => {
console.log("๐Ÿš€ ~ this.expressCheckoutElement.on ~ availablePaymentMethods: ok ok ok ok", availablePaymentMethods)
});

#

when I run with safari

#

But when I run with google

#

it will undefined when I run with google

#

and it will googlePay : false when I run with safari

#

all these requirement for google pay
Chrome 61 or newer.
An activated Google Pay card or a saved card.
A registered domain.

#

This is my chrome.

junior dock
#

What do you see on your page right now?

cold echo
#

An activated Google Pay card or a saved card.

#

~ this.expressCheckoutElement.on ~ availablePaymentMethods: undefined

#

with a div tag express-checkout-element under pay now will display google pay but we don't see it displayed.

#

<div id="express-checkout-element"></div>

junior dock
#

Do you see any errors in your console?

cold echo
#

It is error, I see in my console.

fossil islandBOT
bright moss
#

What's the domain?

cold echo
#

this is my domain.

bright moss
#

How can I repro?

#

Also, where are you located?

cold echo
#

You want to ask which country our Stripe account is in, right?

#

What is repro?

bright moss
#

No, where are you located right now. I can see the account is AE

bright moss
cold echo
#

Can you add me as friend? I will send it to you privately.

bright moss
#

Afraid not

cold echo
#

Is there a way I can send it to you privately?

bright moss
#

Send me what?

cold echo
#

How to access our website.

bright moss
bright moss
cold echo
#

No AE

bright moss
#

It needs my mobile number?

cold echo
#

For login, right?

bright moss
#

Yes

cold echo
#

I will share account to login

#

84984444447 / Demo@123

bright moss
#

Mobile Number is not registered.

#

OK, I got it

#

I see Google Pay

cold echo
#

Is there any reason I can't see my side?

#

I am in Viet Nam

bright moss
#

Try incognito, disable any browser extensions

#

Assuming you have saved cards in your Google account and you're signed into that account in Chrome

#

Otherwise, I'm not sure

cold echo
#

I still can't see it with the incognito browser

#

I signed into that account in Chrome and have saved cards in your Google account

bright moss
#

Do you have third party extensions enabled?

cold echo
#

I deleted all exxtensions

bright moss
#

Yeah I've no idea I'm afraid. I know we don't support Google Pay for India customers (hence why I asked your location): https://support.stripe.com/questions/supported-payment-methods-currencies-and-businesses-for-stripe-accounts-in-india

cold echo
#

No, I am in Viet Nam

#

I still display apple pay

#

in safari.

bright moss
#

Yeah I'm not sure what else to suggest. This seems likie some kind of locale restriction, perhaps set by Google? It's not an integration issue clearly as it's rendering and working for me here

cold echo
#

Do I have to verify this to show google pay?

bright moss
#

Maybe? I don't know

cold echo
bright moss
#

To be clear, that is not a Stripe requirement. You should speak to Google

fossil islandBOT
cold echo
#

Is your google pay display account verified?

knotty geode
#

Hey! Taking over for my colleague. What you mean exactly ?

cold echo
#

I mean do I need to verify google pay here to display the google pay button?

knotty geode
#

Maybe yes, when opened your website we were able to load Google Pay

#

So yes try to validate your account first.

cold echo
#

thank you