Jump to content

Fixing Disabled Script

Recommended Posts

Posted

Site URL: http://enchantedsexandlove.com/revolution

Hi all! I'm trying to add code from PayPal and it's saying "script disabled". I tried looking at it from another browser and it still doesn't work! This is the code I'm using under the payment plan. Thanks for your help!:

<p><div id="paypal-button-container-P-26097925U8845553YMD5QT2Q"></div>
<script src="https://www.paypal.com/sdk/js?client-id=AUIlYeAieag-unUdc9fHZVP23_9I5-zBlyicd4blbOOqasoa5dU4hatppxNdmVKtXpnLCcU8oddspJS9&vault=true&intent=subscription" data-sdk-integration-source="button-factory"></script> 
<script>
  paypal.Buttons({
      style: {
          shape: 'pill',
          color: 'blue',
          layout: 'vertical',
          label: 'subscribe'
      },
      createSubscription: function(data, actions) {
        return actions.subscription.create({
          /* Creates the subscription */
          plan_id: 'P-26097925U8845553YMD5QT2Q'
        });
      },
      onApprove: function(data, actions) {
        alert(data.subscriptionID); // You can add optional success message for the subscriber here
      }
  }).render('#paypal-button-container-P-26097925U8845553YMD5QT2Q'); // Renders the PayPal button
</script></p>

  • Replies 3
  • Views 849
  • Created
  • Last Reply
Posted

Hello,

I couldn't see where the button is supposed to be, is it on the home page? I don't see a payment plan section either. Also, this message commonly shows when you have installed it incorrectly or do not have custom javascript enabled on your website. Be sure that you have a Business plan with Squarespace. Custom scripts are only supported in Business or higher plans. If you have a Business plan....

How are you installing the code? Are you using a code block? Sometimes these scripts require that you add portions of it via Settings > Advanced > Code Injection > Header/Footer injection menus. To me, this looks like it could go in the Header Code Injection field. Let us know!

Thanks,

-Dan

Posted

Thanks Dan,

I'm sorry its on this page: http://enchantedsexandlove.com/revolution and its supposed to be at the bottom under the "Investment" section. I do have a business plan and have used code on other pages.

I installed it using a code block. What do I add in the Settings > Advanced > Code Injection > Header/Footer injection menus?

Thanks again!

Jodi

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.