Categories
Marketing and SEO
 paypal.Buttons({       style: {           shape: 'rect',           color: 'gold',           layout: 'vertical',           label: 'subscribe',                  },       createSubscription: function(data, actions) {         return actions.subscription.create({           'plan_id': 'P-24B727728L198890KL5KSUUY'         });       },       onApprove: function(data, actions) {         alert(data.subscriptionID);       }   }).render('#paypal-button-container'); 

test page

paypal.Buttons({ style: { shape: ‘rect’, color: ‘gold’, layout: ‘vertical’, label: ‘subscribe’, }, createSubscription: function(data, actions) { return actions.subscription.create({ ‘plan_id’: ‘P-24B727728L198890KL5KSUUY’ }); }, onApprove: function(data, actions) { alert(data.subscriptionID); } }).render(‘#paypal-button-container’);