#tom-gullen_PRB-iframe

1 messages Β· Page 1 of 1 (latest)

torn hearthBOT
#

πŸ‘‹ 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/1219679012050305204

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

chrome driftBOT
#

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.

cinder garden
viscid sky
#

Hi πŸ‘‹

Sorry it's still pretty hard to understand what you are doing.

#

You are atrying to use the Payment Request Button loaded within an iframe?

cinder garden
#

However, in an iframe, the button doesn't load.

chrome driftBOT
cinder garden
#

Just so you can reproduce the error:

Broken:

Construct 3 is a video game maker that allows anyone to build games. Use this video game making software to create games for mobiles, desktops, consoles and web.

Launch Construct 3 r384. Make games with the world's easiest browser-based game creator. Try for free now and begin your game development journey.

viscid sky
#

Thanks I'm checking with a colleague about this

cinder garden
#

Just to confirm these are our payment method domains, all verified.

viscid sky
#

Google Pay doesn't worry about this. Can you try changing your code from allow="payment *" to allow="payment"?

cinder garden
#

I did that before, but it had the same error. We changed it to "payment *" as per the docs and the same thing happens

#

I had a previous support thread about it and the advice was to go allow="payment" to allow="payment *", both methods in production fail

viscid sky
#

Okay I cannot fee whatever it is you are trying to share with that Construct link.

cinder garden
#

Click no thanks not now if a dialogue pops up

#

Google pay button should appear here, but shows a JS error and doesn't load. The same URL not iframed it shows up.

viscid sky
cinder garden
#

Yes, if you open up the editor.construct.net link above and inspect the payment page you can see it's in an iframe with the allow payment property set

#

Let me see if I can upload a simpler example

#

Does the payment request button not work if iframed from a different host? Even if both hosts are verified payment domains?

viscid sky
#

I don't know how editor.construct.net works but when you build it in an actual standalone site, does it work?

#

My colleague updated his example to show both same origin and cross-origin iframes

cinder garden
#

editor.construct.net is a web application, and the buy now tab opens the checkout url in an iframe with the allow payment property like the demo page

#

Just testing it again it's now working

#

I've no idea why, maybe some weird caching issue

viscid sky
#

Perhaps

cinder garden
#

Sorry for wasting your time this has been driving me nuts and I think was some weird caching issue

#

Appreciate your help and sorry again 😦

viscid sky
#

No worries, sometimes it just takes poking at it with other people

chrome driftBOT