#alxizr
1 messages ยท Page 1 of 1 (latest)
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 ?
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?
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
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?
but the wallets are not there
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.
i enabled everyhing in the stripe dashboard
this is a test account, we want to integrate the STRIPE to be our payment gateway instead/alongside PAYPAL
Is your test site publicly accessible?
not really. because you need to be logged in with username or password
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
Thank you, but I'm not readily seeing either a Payment Request Button or a Payment Element on that page.
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
I don't see a submit button, under the red area is a section titled Invest in your Education.
I don't see any of that, the red area is blank for me.
Yes
ok, then i have no idea whats going on
anyways
lets ignore this for a second please
we have a screen shot
Yup, let's set that aside and try to guess at what is happening.
What browser are you using, Chrome?
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
Firefox doesn't support Google or Apple Pay, so we can ignore that browser for now.
The profile that you're logged into for Chrome, do you see a payment method listed when you view the payment methods added to the account?
https://pay.google.com/gp/w/home/paymentmethods
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
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.
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
Incognito also blocks Google Pay
just for this reason so my personal account wont be exposed
that explains a lot
but in the office we have the work account s
Did you use incognito there?
sometimes
but when i started working on this feature
no incognito what so ever
can i please ask you something
Of course
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
?
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.
ืื
ok
i am trying this now
but this is not mentioned anywher e
i read the docs upside down
maybe 10 times
It's in this list of prerequisites here if you're looking at our Payment Request Button guide:
https://stripe.com/docs/stripe-js/elements/payment-request-button?client=html#html-js-prerequisites
Or in the Apple Pay and Google Pay section if you're using our Accept a Payment guide:
https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#apple-pay-and-google-pay
nothing
i refreshed the page like 10 times
google pay is not showing
i am not worried about apple because i dont have iphone
Navigate to this page please, what we want to see is whether this section is replaced with a Payment Request Button as that will indicate that your browser is fully set up for handling a wallet payment.
https://stripe.com/docs/stripe-js/elements/payment-request-button
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
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.
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
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.
are we on the right track ?
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.
or it only getting worse ?
how do we clear all sessions ?
if there should be any sessions
?
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?
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
Alright, if you didn't use Link then it likely isn't that you have a session that is causing the conflict.
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
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
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
disabled the link from showing
both test nad live mode
thats it, its gone
but nothing there to replace it
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.
btw, i still have my personal credit card added to the google pay
you are right, this is only testing mode. the idea was using payment element but when i run into trouble i started testing with everything i could
๐ stepping in as toby needs to step away
Sounds like the issue is Google Pay isn't displaying when you expect it to?
ok
say toby i said thanks
google pay is not showing
all the prerequisites are there
You have already confirmed you can see the button in Chrome at the top of our docs page here: https://stripe.com/docs/stripe-js/elements/payment-request-button ?
Ah above you say you only saw Link there
toby asked if i can see the 3 buttons or the yellow box
If you go to https://link.co/ are you logged in?
no. we do not use link
i turned it off
both test and live mode
Sure but that's different. That's for your integration. If you go to https://stripe.com/docs/stripe-js/elements/payment-request-button and you are logged into Link, then you won't see the Google Pay Button, you will see the Link button.
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?
but its not enough
So now let's look at your site
because the payment element still now showing it
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?
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?
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
Okay but I can't see Payment Element. I do see 403 CORS errors to /stripe/create
i dont know what to tell you
honestly
its the middle of the night and i am on this thing 3 days already
Is the above render just from running locally via HTTP?
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
I'm specifically asking about the above screenshot that you provided.
What is the URL that you are accessing that from?
this is the url
its ngrok
but ngrok is tunneling http://localhost:3000
1 to 1
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?
(I say that because Google Pay isn't supported in India: https://support.stripe.com/questions/supported-payment-methods-currencies-and-businesses-for-stripe-accounts-in-india)
im in israel
That should be fine then.
yup
I'd love to help further but it is really challenging to do so without a URL where I can access Payment Element.
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
That sounds great
Just post in the main channel here and someone from our team should be online to help
We usually cover this channel 24/5, however coverage will be slightly spotty this week due to the holidays