#chau_api

1 messages ยท Page 1 of 1 (latest)

swift hareBOT
frigid spruceBOT
#

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.

swift hareBOT
#

๐Ÿ‘‹ 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/1253273486890111031

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

spark trout
#

Hi

swift hareBOT
spark trout
#

Could you please help me

#

Does google pay show up on google chrome on iphone?

#

I have installed google chrome and logged in to my google account on my iphone.

#

But I don't see it displaying the google pay button.

dapper crater
#

๐Ÿ‘‹ happy to help

#

give me a couple of minutes please

#

do you happen to have a card added to your Google Pay wallet?

spark trout
#

yes, I added card

#

with this google account, I can display google pay in my computer.

dapper crater
#

where are you based?

spark trout
#

with google in my computer, I display button google pay in website

#

But when I run by google chrome of iphone, I don't display.

#

I have logged in to my google account with google pay.

dapper crater
spark trout
#

I can't find this app for my phone Google Wallet

#

I am in Viet Nam.

dapper crater
spark trout
#

There is a message that the app is not available in your region or country.

#

I am in Viet Nam

#

Can I download it?

frigid spruceBOT
pulsar pulsar
#

not sure, question for Appple/Google really!

swift hareBOT
spark trout
#

safari display apple pay and google pay, right?

pulsar pulsar
#

that is what that table seems to say, yes!

spark trout
#

But I only see apple pay displayed in my safari, but google pay not

pulsar pulsar
#

I think my colleague indicated you need a specific app installed on the phone for that to be possible?

pulsar pulsar
pulsar pulsar
spark trout
#

No, I am in Viet Nam

pulsar pulsar
#

yep, so I don't think that Google Pay UPI app is relevant to you, so let's put that aside for now

#

what page is your screenshot of our docs from? I thought Google Pay is not supported on iOS but I must be missing something.

spark trout
#

I see google pay and apple pay displayed in safari.

#

But currently I only see apple pay displayed in safari, but google pay is not

pulsar pulsar
spark trout
#

No, I'm talking about desktop safari.

pulsar pulsar
#

same question then, do other sites you visit in Safari have Google Pay active? Do other people in your company visiting your site in Safari, see Google Pay?

spark trout
#

in Safari have Google Pay active

#

I see google pay in my website by my safari.

#

But I only see google pay in my website with google chrome.

pulsar pulsar
#

Apple Pay is only ever visible in Safari.

#

Chrome can only show Google Pay

#

Safari can show Apple Pay, and Google Pay

spark trout
#

Yes, I can't see Google Pay in my safari

pulsar pulsar
#

what is the URL of your site?

#

how do I get to the page where you're using the ExpressCheckoutElement?

spark trout
#

84974444447 / Demo@123

pulsar pulsar
#

which country code?

spark trout
#

84

#

you can buy a ticket

pulsar pulsar
#

it's not using Stripe.

spark trout
#

No

#

it's below

#

this is google pay in chrome.

pulsar pulsar
#

can you show me the exact code you wrote to integrate ExpressCheckoutElement?

#

I'm trying to look but it's all minified.

spark trout
#

const express = {
wallets: {
applePay: 'always',
googlePay : 'always'
}
}
this.expressCheckoutElement = this.stripeElements.create('expressCheckout', {
options: express,
buttonType: {
googlePay: 'buy',
applePay: 'buy',
},
buttonTheme: {
googlePay: 'white'
},});
this.expressCheckoutElement.mount('#express-checkout-element');
const expressCheckoutDiv = document.getElementById('express-checkout-element');

        this.expressCheckoutElement.on('ready', ({availablePaymentMethods}) => {
            console.log(availablePaymentMethods);
            if (availablePaymentMethods && availablePaymentMethods.applePay) {
                this.isApplePay = true
            } else {
                this.isApplePay = false
            }
        });
        this.expressCheckoutElement.on('confirm', async (event) => {
            const {error: submitError} = await this.stripeElements.submit();
            if (submitError) {
                return;
            }
            if (event.expressPaymentType === 'google_pay') {
                this.purchase('google-pay')
            } else {
                this.purchase('apple-pay')
            }
        })
    },
#

this is my code

pulsar pulsar
spark trout
pulsar pulsar
#

can you refactor your site and remove the other payment processor or put the ExpressCheckoutElement on a different page?

#

right now you have the ExpressCheckoutElement <div> inside the id="checkout-iframe-id" <div> for the other payment processor, that might potentially cause issues.

spark trout
#

this.expressCheckoutElement.mount('#express-checkout-element');
const expressCheckoutDiv = document.getElementById('express-checkout-element');

        this.expressCheckoutElement.on('ready', ({availablePaymentMethods}) => {
            console.log(availablePaymentMethods);
        });
#

I console log here

#

button google pay return false of availablePaymentMethods

pulsar pulsar
#

yes I know

#

can you try what I said and build the ExpressCheckoutElement on its own simple page on your site without another payment processor's code, to rule things out and see if it appears there?

swift hareBOT
spark trout
#

I will change all to stripe

#

I will info you now

#

could you please reload page in my wesite

pulsar pulsar
#

in your code you posted earlier, what does options: express, mean?

#

what is the variable express ?
in any case that parameter isn't doing anything , you can see in your console log
"Unrecognized elements.create('expressCheckout', options) parameter: options is not a recognized parameter. This may cause issues with your integration in the future."

spark trout
#

const express = {
wallets: {
applePay: 'always',
googlePay : 'always'
}
}
this.expressCheckoutElement = this.stripeElements.create('expressCheckout', {
options: express,
buttonType: {
googlePay: 'buy',
applePay: 'buy',
},
buttonTheme: {
googlePay: 'white'
},});

wooden anchor
#

Can you remove options: express? It's not a valid param

spark trout
#

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

#

Do I need to define this?

#

I removed it

wooden anchor
#

The overall API shape should look like this:

create('expressCheckout', {
  buttonType: {
    googlePay: 'buy',
    applePay: 'buy',
  },
  buttonTheme: {
    googlePay: 'white'
  },
  paymentMethods: {
    applePay: 'always',
    googlePay: 'always'
  }
});
spark trout
#

Can I put down 2 lines as my design?

wooden anchor
#

So it's working now?

spark trout
#

Yes, It worked. Thanks a lot.

#

Can I put down 2 lines as my design?

wooden anchor
#
layout: {
  maxColumns: 1
  maxRows: 0
}
spark trout
#

this.expressCheckoutElement = this.stripeElements.create('expressCheckout', {
buttonType: {
googlePay: 'buy',
applePay: 'buy',
},
buttonTheme: {
googlePay: 'white'
},
paymentMethods: {
applePay: 'always',
googlePay: 'always'
},
layout: {
maxColumns: 1,
maxRows: 0
}
});