#burton_code

1 messages · Page 1 of 1 (latest)

potent quartzBOT
#

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

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

vital furnace
#

hello! Failed to execute 'postMessage' on 'Window': Delegation is not allowed without transient user activation. - This error usually occurs if you run either confirmPayment() or elements.submit() without a user action. These must be invoked directly by a user activation event, like a click or a touch gesture. To prevent this error, you should also make sure the code that shows the payment sheet is at or near the top of your user gesture event handler, before any async or long-running code.

potent quartzBOT
lapis onyx
#

But how can I know how long browser or stripe receive that it's not a human.
I mean after last click, how long will issue happen ?
Because in current flow, only sometimes I get this issue.

indigo moat
#

Hi @lapis onyx I'm taking over this thread. Have you tried what alex suggested earlier? Does that solve your problem?

lapis onyx
#

Hi @indigo moat
I think it should be work.
But I wanna deep find out.
Could you explain or give me some docs how can browser / stripe get the user activation?

indigo moat
#

No I don't have such doc. Why do you need to know the details?

lapis onyx
#

Ah, I need to report to my team lead.
Current flow are run good, but sometimes it get fails due to "Delegation is not allowed without transient user activation"
So I need to optimize code, but he want to clarify why and how does this issue happen.

#

Currently, we have more than 60.000 transactions per month so he don't want to change anything if not neccessary

#

So before I give him solution, I wanna understand what and how the user activation flag work

indigo moat
#

You can tell them this is the solution from Stripe engineer, and I don't more details to disclose.