#sweta_code

1 messages ¡ Page 1 of 1 (latest)

half pastureBOT
#

👋 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/1369681149017985177

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

storm rock
flat whale
#

If you open the developer console while clicking on the button, are any errors emitted?

#

Also do you have a live test page where I can reproduce this myself? Happy to take a look

storm rock
flat whale
#

Sounds good, and did you see anything in the dev console?

#

I am seeing the same behavior in my Safari. Can you send me your code for what happens when the express checkout element buttons are clicked? I can try to reproduce on my test site

storm rock
#

sure

#

??

flat whale
#

Server is a bit busy so I am taking a look. The thing that sticks out to me is updating the element while trying to show it specifically for google pay. If you comment that code out and test again does the behavior go away? If so, we can look into how to better update that value

storm rock
#

yes if I comment the updating part, the popup opens
but for google pay we need to update the amount in the popup for which the code is

What can be alternative for this?

flat whale
#

Good question, checking what we support here

#

And can you tell me more about why you want there to be an amount only for google pay here?

storm rock
#

we are giving subscription for user where the user are charged for the amount. And in google pay, there is a amount field so that amount that needs to be charged need to be displayed here

#

you can see $0.00
if i remove that code the value is not updated!

flat whale
#

And are you actually charging that amount upfront, or is this just a card setup where nothing is actually being charged now?

storm rock
#

i did not get this
could you please elaborate

flat whale
#

When that dialogue says $0, it is typically because elements is in "setup" mode, which means you are collecting the user's card details now but are not actually charging them any money right now.

#

So I am trying to understand whether your page is doing that, and is just collecting card details right now, or if you are actually charging them money on that page

storm rock
#

yes first it is setup
once the user clicks confirming the card detail, then only we are charging the amount.

The google pay popup should show the amount which needs to be charged when user confirms

flat whale
#

When will the user confirm, is that later in this process, or will they confirm and be charged some amount days after the process on this page?

storm rock
#

it is instant once the user clicks on continue button in the google pay popup

flat whale
#

Ah looking at your page I now see that there will sometimes be a trial and sometimes not be a trial.

#

What would likely make more sense to do is update the amount when the user clicks between the two plans. Set the amount to $19.99 when they choose the plan without a trial, and set it to 0 when they choose the plan with a trial. That way the amount is already set when the ECE button is clicked

storm rock
#

even with the trial, the amount must be shown because the amount will be charged directly from stripe after completing 7 days trial

#

also if i have to set the amount what can i do without the click event?

half pastureBOT
storm rock
#

?

flat whale
#

I have to step out soon so my colleague is joining. Unfortunately it looks like we don't support that, if you have a free trial we only support showing $0 at the moment

storm rock
#

this issue only exists in safari!

Following code is working fine in chrome
if (event.expressPaymentType === 'google_pay') {
this.updateExpressCheckoutElement({ mode: "payment", amount: Math.round(expressElementAmount ?? options.price) })
}

hollow locust
#

Hi hi! I’m going to be taking over for my colleague here. Can you please summarize where things are at for me, and what issue(s) is/are blocking you?

storm rock
#

I am using express checkout element for integrating stripe payment method in my application. All the payment methods were working fine previously but currently we noticed that the google pay popup is not being opened in mac safari. While checking google pay in safari ios it works and also is working in chrome. The issue is only in mac safari.

hollow locust
#

When exactly did you notice the issue? Can you share a URL where I can see the issue myself?

storm rock
#

recently, not sure from when

hollow locust
#

That's what you're seeing, ya?