Jump to content

Code and Unihtmlframe


AntonioCuomo

Recommended Posts

j have a component unihtmlframe with this code in HTML property:

 

<div id="paypal-button-container"></div>
<script src="https://www.paypal.com/sdk/js?client-id=**************************************t=true" data-sdk-integration-source="button-factory"></script>
<script>
  paypal.Buttons({
      style: {
          shape: 'rect',
          color: 'gold',
          layout: 'horizontal',
          label: 'subscribe'
      },
      createSubscription: function(data, actions) {
        return actions.subscription.create({
          'plan_id': 'P-76T5030983848210BL6GXPMY'
        });
      },
      onApprove: function(data, actions) {
        alert(data.subscriptionID);
      }
  }).render('#paypal-button-container');
</script>

 

This is a button Paypal.

This code run with old component (and run in demo) but after upgrade this code not run.

if j copy the component in demo and past in my form run.

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...