#lempan

1 messages · Page 1 of 1 (latest)

tacit hareBOT
verbal hull
#

Hello

#

Do you see anything else in your console?

#

And does this happen with both Google and Apple Pay or just Apple Pay?

eager tide
#

Yes this happens to both

verbal hull
#

Is there a link where I can reproduce this?

eager tide
#

I get a DOMException: failed to execute 'postMessage

verbal hull
#

Is that the whole exception?

eager tide
#

Uncaught DOMException: Failed to execute 'postMessage' on 'Window': Delegation is not allowed without transient user activation.

verbal hull
#

Are you doing a bunch of stuff in your click handler before calling confirmPayment()?

#

Like are you calling your backend for any reason?

eager tide
#

Yes, creating a paymentIntent for that type of product. We have two different products

verbal hull
#

You are using the deferred intent flow?

#

Is there somewhere I can repro from my side?

eager tide
#

Login and get a boiler plate CV and then try to downlaod. A google/apple pay will start but yo do not need to go through with it

#

to see the errors

verbal hull
#

Looks like the only way to login is with Google or LinkedIn?

#

I can't do that

#

So either need a direct link or provided login information or you are going to have to provide me more information

eager tide
#

Yes i could provide some more information

#

there no other action happening after pressing the buy button

verbal hull
#

Can you provde me your code snippet for your click handler?

eager tide
#

yes ofcourse

verbal hull
#

And you aren't using incognito when you are testing, right?

eager tide
#

In this function the error arises.

verbal hull
#

elements.submit() is a promise

#

Try using await

#
  if (submitError) {
    handleError(submitError);
    return;
  }```
#

Did that fix things @eager tide ?

eager tide
#

Sorry i am currently testing this, need to be approvedfor me to push it to staging so i will return with an answer shortly

#

🙂

verbal hull
#

Ah okay no worries

eager tide
#

It worked!

#

Thank you sir

verbal hull
#

Yay