#alxizr

1 messages ยท Page 1 of 1 (latest)

lilac dustBOT
analog plinth
#

hello

#

toby

#

hi

#

how are you

#

thank you for the help

#

are you familiar with this issue that i described ?

#

do you know how to solve it ?

#

is it a known issue perhaps ?

golden zealot
#

HI ๐Ÿ‘‹ there, pasting your other context here so to paint a more clear picture.

using react js in the client side + nodejs express and python flask in the backend side
all of our envs are serving over HTTPS with certificates
in the dashboard all the payment methods are enabled and verified

Which Element are you using? Our Payment Element or a different one?

analog plinth
#

i am using several of them because nothing works

#

PaymentElement

#

PaymentRequestButtonElement

#

also created a stipe checkout

#

the same result

#

google pay and apple pay are not showing

#

only LINK

#

i installed even MKCERT

#

and NGROK

#

the browser is showing strong secure connection in every case

golden zealot
#

Gotcha, those are two different elements so we may need to dig into them separately, but if it isn't working for any of those then it sounds like the necessary payment methods aren't enabled.

What is the ID of the Stripe account that you're using for your testing?

analog plinth
#

but the wallets are not there

golden zealot
#

Oh, the other thing that can cause those wallet options to not be displayed is that you don't have a card set up in those wallets.

analog plinth
#

i enabled everyhing in the stripe dashboard

analog plinth
golden zealot
#

Is your test site publicly accessible?

analog plinth
#

and this is a SaaS platform, i don't really know how much i can expose

#

give me a second

#

i will open it via ngrok

#

and give you a test acccount

#

go to pricing page

#

i pasted the stripe component there so we dont need to log in

#

this is my local react server, serving https over ngrok

golden zealot
#

Thank you, but I'm not readily seeing either a Payment Request Button or a Payment Element on that page.

analog plinth
#

there is no button

#

the entire code runs in several hooks

#

if you click the submit button under the red area

#

this will try to create a payment

#

and it is successful

#

the logic and behaviour is there and correct

#

just cant get the wallets

golden zealot
#

I don't see a submit button, under the red area is a section titled Invest in your Education.

analog plinth
golden zealot
#

I don't see any of that, the red area is blank for me.

analog plinth
#

the element 1 is the payment request

#

the element 2 is the payment element

golden zealot
analog plinth
#

wait are you in https

#

?

golden zealot
#

Yes

analog plinth
#

ok, then i have no idea whats going on

#

anyways

#

lets ignore this for a second please

#

we have a screen shot

golden zealot
#

Yup, let's set that aside and try to guess at what is happening.

#

What browser are you using, Chrome?

analog plinth
#

you can see that the page is served under https in a CHROME browser version 108 in windows 11 and ubuntu 22.04

#

the same also happens in firefox as well

golden zealot
analog plinth
#

if you want i can paste the react code here

#

this is my personal account

#

i dont use google pay

#

and in this link, i dont see anything

#

but we have an account for work

golden zealot
#

If you don't have a card added to your Google Pay wallet then our Elements won't display Google Pay as an option to you, and that is likely why you aren't seeing it during your testing.

analog plinth
#

with a card attached to google pay

#

and its all the same

#

we actually used google pay to pay for our google services

#

๐Ÿคฃ ๐Ÿคฃ ๐Ÿคฃ

#

iam using incognito usually when working locally

golden zealot
#

Incognito also blocks Google Pay

analog plinth
#

just for this reason so my personal account wont be exposed

analog plinth
#

but in the office we have the work account s

golden zealot
#

Did you use incognito there?

analog plinth
#

sometimes

#

but when i started working on this feature

#

no incognito what so ever

#

can i please ask you something

golden zealot
#

Of course

analog plinth
#

if i add my credit card now via this link you sent me

#

this potentially may or may not show the google pay button in my computer at home

#

so maybe i will just try it

#

?

#

what do you think

#

?

golden zealot
#

If you currently don't have a card added to your Google Pay wallet, then that is guaranteed to block us from displaying Google Pay. Having a card in your wallet is a prerequisite for us to display Google or Apple Pay, so if you would like to test this then adding a card to your wallets is likely going to be necessary.

analog plinth
#

ืืœ

#

ok

#

i am trying this now

#

but this is not mentioned anywher e

#

i read the docs upside down

#

maybe 10 times

golden zealot
analog plinth
#

nothing

#

i refreshed the page like 10 times

#

google pay is not showing

#

i am not worried about apple because i dont have iphone

golden zealot
analog plinth
#

what do you want me to do exactly

#

?

#

the code implementation in this page already exists in my code

#

it is the 1 element showing in the photo

#

it is displaying LINK only

golden zealot
#

Navigate to the page that I provided a link to, and let me know whether the yellow box that I circled is present, or if it was replaced by one of the three buttons seen below it.

#

Sorry, I had previously provided the link to the pre-req section again, I've updated the link but you can also scroll to the top of the page to see the section I'm referring to.

analog plinth
#

that yellow box is not showing

#

and no three buttons

#

wait, now i can see the 3 buttons after a refresh

#

but they are not buttons, but an image

golden zealot
#

The three buttons are further down the page, but they're not as important because they are just representations of the button. The top at the part is what I wanted to see.

analog plinth
#

are we on the right track ?

golden zealot
#

Since you're seeing the Link button displayed there, rather than Google Pay, I think you may have an active Link session that is taking priority over Google Pay.

analog plinth
#

or it only getting worse ?

analog plinth
#

if there should be any sessions

#

?

golden zealot
#

I'm trying to find that, while I do, can you confirm whether you were testing any Stripe Link flows? Link is also the fallback button option there, so it may be getting displayed to you if nothing else is configured.

I also want to triple check, you're using Chrome for this testing now and not in incognito mode?

analog plinth
#

we dont have LINK in israel

#

and nobody touched it

#

it wasnt showing until i setup the local development to run in https with a sertificate

#

which only happened yesterday

golden zealot
#

Alright, if you didn't use Link then it likely isn't that you have a session that is causing the conflict.

analog plinth
#

i am turning it off just to be on the safe side

#

its off

#

unfortunately nothing has changed

#

and i can still see the LINK button in the react project

#

maybe it takes couple of minutes

golden zealot
#

Yeah, it can take a couple minutes, and if that is a Payment Request Button Element above a separate Payment Element, then there are multiple settings that you need to check which control where Link is presented.

If you are using the Payment Request Button and would like to disable Link for it, then you'll also want to adjust the setting found on this page:
https://dashboard.stripe.com/settings/link

analog plinth
#

these are the 2 elements i am using

#

PaymentElement,

PaymentRequestButtonElement,

analog plinth
#

both test nad live mode

#

thats it, its gone

#

but nothing there to replace it

golden zealot
#

I know you're in testing right now, but you'll likely want to use only one of those elements in production. They both can accept wallet payments, but the Payment Element also accepts other types of payment methods and is the one that I would recommend using.

I'm still suspecting that something isn't quite set up right with the browser you're testing with to allow Google Pay to be displayed.

analog plinth
#

btw, i still have my personal credit card added to the google pay

analog plinth
rich mist
#

๐Ÿ‘‹ stepping in as toby needs to step away

#

Sounds like the issue is Google Pay isn't displaying when you expect it to?

analog plinth
#

ok

#

say toby i said thanks

#

google pay is not showing

#

all the prerequisites are there

rich mist
#

Ah above you say you only saw Link there

analog plinth
#

toby asked if i can see the 3 buttons or the yellow box

rich mist
analog plinth
#

no yellow box

#

saw the image of 3 buttons

analog plinth
#

i turned it off

#

both test and live mode

rich mist
#

This is the way to know whether your wallet is set up correctly for Google Pay

#

Because otherwise it won't show on your own integration either.

#

Also, I see you talked about incognito above... are you testing in incognito here?

analog plinth
#

something happened

#

i can see the google pay button now

#

it wasnt there before

rich mist
#

Oh great

#

Okay so that indicates that your wallet is set up correctly

analog plinth
#

but its not enough

rich mist
#

So now let's look at your site

analog plinth
#

because the payment element still now showing it

rich mist
#

I see there is an ngrok above, but it doesn't look accessible currently

#

Can you set that up again so I can take a look from my end?

analog plinth
#

wait

#

i think i closed it

rich mist
#

Thanks, taking a look

#

I'm seeing a blank page and a bunch of 401 axios errors

#

Is there something I need to do to access Payment Element?

analog plinth
#

dont mind the 401

#

errors

#

we are yet to deploy any changes regarding stripe to the testing env

#

so what you are seeing is the local dev in my computer

#

this is the PaymentElement

rich mist
#

Okay but I can't see Payment Element. I do see 403 CORS errors to /stripe/create

analog plinth
#

i dont know what to tell you

#

honestly

#

its the middle of the night and i am on this thing 3 days already

rich mist
#

Is the above render just from running locally via HTTP?

analog plinth
#

react js running on loacl dev server on port 3000

#

using ngrok i am serving it via https

#

if you also look at the start of the conversation

#

i explained that i set up local dev with mkcert

#

and certificates

#

and https

#

and what not

#

and nothing changed

rich mist
#

I'm specifically asking about the above screenshot that you provided.

#

What is the URL that you are accessing that from?

analog plinth
#

this is the url

#

its ngrok

#

1 to 1

rich mist
#

Okay, I'm sorry but I can't see anything at that URL due to the CORS error.

#

You aren't in India are you?

analog plinth
#

im in israel

rich mist
#

That should be fine then.

analog plinth
#

yup

rich mist
#

I'd love to help further but it is really challenging to do so without a URL where I can access Payment Element.

analog plinth
#

ok

#

listen

#

ill be in the office on thursday morning

#

ill setup everything in the testing env

#

so we will have something to work with

rich mist
#

That sounds great

analog plinth
#

how can i reach you or toby once it is up in the air

#

?

rich mist
#

Just post in the main channel here and someone from our team should be online to help

analog plinth
#

ok

#

thank you very much

rich mist
#

We usually cover this channel 24/5, however coverage will be slightly spotty this week due to the holidays

analog plinth
#

no worries

#

im not going anywhere

rich mist
#

But yeah, I believe someone should be around and we'd love to help get this figured out

#

๐Ÿ‘

analog plinth
#

๐Ÿ˜„

#

great