#peach_code

1 messages ¡ Page 1 of 1 (latest)

azure anchorBOT
#

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

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

digital blaze
#

Where is handleCalendlyClick being called?

glad agate
#

i have a button in one of my views

#

when i click the button, it blocks the new window opening with the afforementioned error:

  <Button type="primary" onPress={handleCalendlyClick}>
    Activate Redux
  </Button>
#

was made in a sandboxed frame whose 'allow-popups' permission is not set.

is there a way to allow popups in the app sandbox?

digital blaze
#

Thanks for sharing the details. I'm afraid it's not possible to override the sandboxed permission to allow pop up. This is not supported in Stripe apps.

glad agate
#

understood. so how can i test that it works before publishing the app to the marketplace?

digital blaze
#

Have you checked the guide here on how to preview and build the app to test your changes?

glad agate
#

yea, but the documentation you just linked is the sandbox though, right? which doesn't allow popups

digital blaze
#

Sandboxed frame is not a sandbox environment. Sandboxed frame is an attribute in HTML:

MDN Web Docs

The HTML element represents a nested browsing context, embedding another HTML page into the current one.

#

Pop-up will not be supported in any environment for Stripe apps

glad agate
#

ah, ok. thanks for clarifying. so how can i link out to an external site from within a view? we want to give customers the option of setting up a consulation when installing the app

#

like is there any way to make this button work in a view?

  const handleCalendlyClick = () => {
    window.open('https://calendly.com/philip-pages', '_blank');
  };
glad agate
#

nvm, i got it working. thanks for your help