add a PayPal subscription script and logo to a button
-
Hi. I am creating PayPal subscriptions for our products, but am finding it very difficult to style the PayPal button in the following script:
<div id="paypal-button-container-P-5H541515HP9014533MYWPGPQ"></div> <script src="https://www.paypal.com/sdk/js?client-id=sb&vault=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-5H541515HP9014533MYWPGPQ' ??????? }); ????? }, ????? onApprove: function(data, actions) { ??????? alert(data.subscriptionID); // You can add optional success message for the subscriber here ????? } ? }).render('#paypal-button-container-P-5H541515HP9014533MYWPGPQ'); // Renders the PayPal button </script>
I currently use the free version of Max Buttons.
Either with the free or paid version, is it possible to add such a script to a button and use the PayPal icon?
Many thanks
SarahThe page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘add a PayPal subscription script and logo to a button’ is closed to new replies.