#_greggles_
1 messages ยท Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
- greggles-subs-cashapp, 4 hours ago, 14 messages
- greggles, 22 hours ago, 23 messages
- greggles, 2 days ago, 18 messages
๐
Did you already try setting allow-top-navigation or allow-top-navigation-by-user-activation in your i-frame?
The iframe is created by Google Pay, I believe. I do not create an iframe on the page.
I've tested Cash App Pay on the same integration and it looks like it creates an iframe.
Although maybe Stripe creates that one.
When does that error occur in the flow? After you dismiss the Google Pay modal? Or before?
No, the google pay modal is the iframe. The error occurs trying to create that modal
Still there?
Yup! Give me a couple minutes. The server is a bit busy
No worries! Thanks for your attention ๐
I am also getting this error on page load which is relevant
Unable to download payment manifest "https://pay.google.com/gp/p/web_manifest.json"
Can you look through the HTML on your page and check every element? Like, I can't see how this isn't coming from an i-frame that the Payment Element is nested under.
There is no iframe on my page. When I select Cash App Pay, an iframe is created with the name attribute "__privateStripeFrame80821"
Same with using a US Bank Account.
When I submit using Google Pay, I immediately get that error when I would expect the iframe to be created.
So I guess I'm saying, the other payment methods work as expected, only Google Pay is throwing this error.
Hello! I'm taking over and catching up...
Hey there. Sorry to be a pain!
Can you make this page or a test case available somewhere online so we can debug on our end? An issue like this is really difficult to debug without direct access to the page.
Yes I can do that but it's going to take some time for me to put this up on my dev server.
2 minutes
In the meantime can you get to the point where the Payment Element is displayed, then open the browser console and run the following code, then share the output?
for (const iframe of document.querySelectorAll('iframe[sandbox]')) { console.log(iframe.src); console.log(iframe.sandbox); }
DOMTokenList(5) ['allow-scripts', 'allow-forms', 'allow-popups', 'allow-popups-to-escape-sandbox', 'allow-same-origin', value: 'allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-same-origin']
0
:
"allow-scripts"
1
:
"allow-forms"
2
:
"allow-popups"
3
:
"allow-popups-to-escape-sandbox"
4
:
"allow-same-origin"
length
:
5
value
:
"allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-same-origin"
[[Prototype]]
:
DOMTokenList
There should have been a URL before that.
And that's the only URL in the output?
๐ค
Can you run this in the same console?
try { console.log(window.self !== window.top); } catch (e) { console.log(true); }
false
Hm. Will be interesting to see if the issue persists when the page is online. Wondering if it's something to do with your local environment, but I guess we'll see soon!
Maybe. The deployment is almost done. Just getting ready to test.
How's it going?
You'll need to log in under
greg.ulrich@me.com
password: portugal
Same error, unfortunately
Sorry, changed the email
Ah, there we go...
Quick and dirty...
When does the error appear for you exactly?
Selecting Google Pay first, of course.
So are you not able to get the Google Pay sheet to appear?
The error prevents that from happening on your end?
I see this, but when I submit the form, I get the error
Confirm & Purchase button
I don't, it works for me. Perhaps your have a browser extension that's causing an issue? Can you try in incognito?
Google Pay is not an option in incognito for me.
Maybe try disabling all your extensions for a moment?
Unable to download payment manifest "https://pay.google.com/gp/p/payment_method_manifest.json
Then if it works try turning them back on one at a time.
Yeah, you can ignore that error, it won't impact anything.
All extentions disabled and GP is still not showing as a payment option :\
Outside of incognito it's not showing up?
Icognito is a quick way to try without extensions, but it might have stopped Google Pay from working.
Yeah, can you try there with extensions turned off? Make sure you reload the page after disabling extensions.
Safari it doesn't show as an option either, in regular mode I mean
I did.
Yeah, Google Pay works in Chrome.
It's possible you hit the internal rate limit and Google Pay won't show up for that reason.
Can you try restarting Chrome and see if shows up again?
I have restarted after disabling extentions. Will do so again.
Also curious if you see Google Pay here, and if this Payment Element works for you or not? https://4242.io/test/payment-element/
I do see it. When I clicked Pay Chrome blocked a popup
Yeah, something strange is going on with your browser. That's a basic reference implementation that's known to work.
Maybe look through Chrome's payment and security settings for things that might cause an issue?
You also said US Bank Account caused the same issue, right? Does the reference implementation work with that payment method for you?
No. US Bank and Cash App Pay were fine.
Ah, I misread.
There's a low-level Google Pay test page here: https://rsolomakhin.github.io/pr/gp2/
When you open that does it say Can make payment under the buy button?
Yeah that works fine.
Does it say you have an enrolled insrurment under that?
Ah... okay. That's likely the core of the issue.
If you click on the buy button on that page what happens?
Okay, that's what's supposed to happen. And you have actual Google Pay cards, not just cards stored locally in Chrome?
No, you can X out.
Actually, no. Those are saved cards. I am not enrolled in Google Pay.
Ah, okay. That's the primary problem then, you need a Google Pay card to use/test Google Pay.
Although I'm not sure why the option was showing up in the first place... maybe you have the setting that prevents sites from checking the status of Google Pay turned off?
If you go to chrome://settings/payments do you have "Allow sites to check if you have payment methods saved" turned on or off?
I see. I can do that, but I'd expect to be able to test a Stripe integration without one, like any other payment method,
It's off
That's not how Google Pay (or Apple Pay) work with Stripe. In test mode you see and use your real Google Pay and Apple Pay cards.
I just turned it on
Ah, okay, so if you turn that on you shouldn't see Google Pay as an option anymore until you add a Google Pay card.
OK, now I know.
It's on, I restarted the browser and I still see Google Pay on the dev server and my local
And you're not in incognito, right?
Correct
And you still get the same error when you try to use it?
Interesting.
Thank you so much for your patience.
No problem, we're here to help!
I wonder if this would fail in production though
I'd rather not show payment methods that throw a fatal error
Well, the reason I said, "interesting," up there was because it shouldn't fail like this.
Hang on...
Hanging...
Hm, I can't reproduce Google Pay showing up when no Google Pay cards are available. I'm using a separate profile with no cards saved...
How about toggling that check for saved cards option to off?
Tried it both ways.
Google Pay doesn't show up in the Payment Element for me either way.
Huh. I toggled it off and got the error when submitting
I wonder why I can't reproduce on my end...
OK, so I do have cards registered with google pay
These are not just stored in Chrome, they're registered payment methods with G Pay
Oh, here we go! I'm able to reproduce now.
Solid
I'll flag internally and we'll work on getting this fixed. Thank you for working with me to get to reproduction steps!