Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Fixing Disabled Script


JodiR

Question

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>

Edited by JodiR
Link to comment

3 answers to this question

Recommended Posts

  • 0

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

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...