Sign in

Not able to embedd any javascript forms

  • This topic has 1 reply, 2 voices, and was last updated 1 year ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8685
    Avatar photorish404

    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 photoTomasz Dziuda

    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.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.