URGENT: Paypal button integration does not show woth plugin activated
-
Hello,
We are using a Paypal subscription button on 4 product pages.
This worked fine with the old “WooCommerce PayPal Checkout Gateway” plugin.
With the new plugin ”
WooCommerce PayPal Payments” the buttons gets hidden after one second, leaving the customer no chance to purchase over the button!Integration is done via this code:
<div id="paypal-button-container-P-3...XXXXXX"></div> <script src="https://www.paypal.com/sdk/js?client-id=A...XXXXXX1&vault=true&intent=subscription" data-sdk-integration-source="button-factory"></script> <script> paypal.Buttons({ style: { shape: 'rect', color: 'white', layout: 'vertical', label: 'subscribe' }, createSubscription: function(data, actions) { return actions.subscription.create({ /* Creates the subscription */ plan_id: 'P-3...XXXXXX' }); }, onApprove: function(data, actions) { alert(data.subscriptionID); // You can add optional success message for the subscriber here } }).render('#paypal-button-container-P-3...XXXXXX'); // Renders the PayPal button </script>
With the Paypal plgin in deactivated the button works as expected.
What can we do to fix this?Urgent help needed. thanks !
The page I need help with: [log in to see the link]
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘URGENT: Paypal button integration does not show woth plugin activated’ is closed to new replies.