Advanced Hover Settings

Advanced Hover Settings For Joomla Website Builder Gridbox
Mon. - Fri. 9 am - 5 pm Ask a Question
Remember me

Add custom paypal on page with gridbox

1 month 2 days ago #1

  • matthieu's Avatar
  • matthieu
  • Posts: 68
Hi,

is it possilble to add paypal buton with this code in the page please ?
<div id="paypal-button-container-P-7xxxxxxxxxxxxxxx"></div>
<script src="https://www.paypal.com/sdk/js?client-id=xxxxxxxxxxxxxx=true&intent=subscription" data-sdk-integration-source="button-factory"></script>
<script>
  paypal.Buttons({
      style: {
          shape: 'rect',
          color: 'gold',
          layout: 'vertical',
          label: 'subscribe'
      },
      createSubscription: function(data, actions) {
        return actions.subscription.create({
          /* Creates the subscription */
          plan_id: 'P-7xxxxxxxxxxxxx',
          quantity: 1 // The quantity of the product for a subscription
        });
      },
      onApprove: function(data, actions) {
        alert(data.subscriptionID); // You can add optional success message for the subscriber here
      }
  }).render('#paypal-button-container-P-7xxxxxxxxxx'); // Renders the PayPal button
</script>

thanks a lot

1 month 2 days ago #2

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 19689
Hello,
Thank you for contacting us

You can create Joomla custom html module
And add it to the page using the plugin Joomla Modules

Best Regards,
Vyacheslav, Balbooa Support Team

1 month 1 day ago #3

  • matthieu's Avatar
  • matthieu
  • Posts: 68
Hi,

I add the code in HTML plugins



In grid editor, the paypal button is ok



but in web page, no do you have an idea please ?

1 month 1 day ago #4

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 19689
Send us a link to page with problem.

Regards,
Vyacheslav, Balbooa.com

1 month 1 day ago #5

  • matthieu's Avatar
  • matthieu
  • Posts: 68
root cause is html compression :ohmy:

1 month 1 day ago #6

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 19689
The reason is in the "one-line" comment, after minimization (everything is collected in a line) the code stops working.
You need to avoid "one-line" comments


Best Regards,
Vyacheslav, Balbooa Support Team

1 month 1 day ago #7

  • matthieu's Avatar
  • matthieu
  • Posts: 68
after cleaning... the problem still the same...

1 month 1 day ago #8

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 19689
Send us a link to page with problem.

Regards,
Vyacheslav, Balbooa.com

1 month 1 day ago #9

  • matthieu's Avatar
  • matthieu
  • Posts: 68
even without http compression I still have good results with gtmetrix and pagespeed.





so that's fine thanks.

4 weeks 7 hours ago #10

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 19689
You are welcome ;)
Let us know if you need more assistance!

Best Regards,
Vyacheslav, Balbooa Support Team
Powered by Kunena Forum