Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Not able to embedd any javascript forms

  • #8685
    Avatar photo[anonymous]

    Hi

    I tried embedding simple javascript forms and pricing tables but I’m not able to.

    In this page, there should be a strip pricing table but it shows nothing https://getshredgo.net/stripe/

    The RAW html code I’m embedding goes like this:

    <body>
      <h1>We offer plans that help any business!</h1>
      <!-- Paste your embed code script here. -->
      <script
        async
        src="https://js.stripe.com/v3/pricing-table.js">
      </script>
      <stripe-pricing-table
        pricing-table-id="{{PRICING_TABLE_ID}}"
        publishable-key="pk_test_51M2gs6SEtL3yi2cWfMUYjlTu8iF7Q0wWpZuHgp5al4rExxxX3EUdc7SMH2CTvObKzJEeIT4eCoEuQjpqy6LQOdgu00HTpiZGHk"
      >
      </stripe-pricing-table>
    </body>
    

    The console throws the following error:

    #8716
    Avatar photo[anonymous]

    Hi,

    Looks like a stripe issue – some scripts seems to be loaded with SRI mechanism, but control sum is not equal to the excepted one so browser doesn’t load it. But it looks like in issue with the script not with Publii.