Write like only you can…
To pay, click the button below
https://www.paypal.com/sdk/js?client-id=AW40iNLtjvvGQX8MwxfZBmtnWeCcYnmVW5ryi5TgISCdCcRx7qq2FvJtLAbiO6SI5eZlqT5u19GfARhc&vault=true&intent=subscription
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-3MR784921X009353YMHJONKQ’
});
},
onApprove: function(data, actions) {
alert(data.subscriptionID); // You can add optional success message for the subscriber here
}
}).render(‘#paypal-button-container-P-3MR784921X009353YMHJONKQ’); // Renders the PayPal button
Having trouble with this? Reach out to me at annharikeerthan@gmail.com