Support » Plugin: WooCommerce Stripe Payment Gateway » Failed to execute ‘postMessage’ on ‘DOMWindow’ error at checkout

  • Resolved databell96

    (@databell96)


    Having issues where the Stripe checkout form is not coming up anymore. Instead, I get an error in console that says Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘https://js.stripe.com’) does not match the recipient window’s origin, followed by my URL. Anyone using this plugin experience anything similar? And if so, how did you fix it?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Howdy 🙂

    I don’t think the two things are related at all. The JavaScript error that you are seeing seems to be something that the folks at Stripe have been battling with for quite some time: https://github.com/stripe/react-stripe-elements/issues/98 and as near as I can tell in that issue, they don’t believe that there is any degradation of Stripe when this particular JavaScript error occurs.

    I believe that the actual issue that you are experiencing is related to Stripe Checkout not working and I am able to reproduce this on a local test site, e.g. when I get here: and press the ‘Pay for order’ button, nothing happens – on that test site, Stripe is in test mode which doesn’t cause the JavaScript error and the modal still doesn’t work. I have opened an issue for this here: https://github.com/woocommerce/woocommerce-gateway-stripe/issues/763

    While waiting for this to be fixed, I would suggest disabling Stripe Modal Checkout by unchecking the box here:

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thread Starter databell96

    (@databell96)

    The Stripe account failed to update. That was the problem. Once a new API was put in, it started working again. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Failed to execute ‘postMessage’ on ‘DOMWindow’ error at checkout’ is closed to new replies.