<div id=”paypal-button-container-P-0JY03957GE7592229M5RRT7I”></div>
<script src=”https://www.paypal.com/sdk/js?client-id=AdBK6PeMegQHAuU158WRDi3mBCqORru7PZDFygQIm3qfrTnjruOWKLKSfEGTM2aA_4ghQkq9XpnQkg3w&vault=true&intent=subscription” data-sdk-integration-source=”button-factory”></script>
<script>
paypal.Buttons({
style: {
shape: ‘pill’,
color: ‘silver’,
layout: ‘vertical’,
label: ‘subscribe’
},
createSubscription: function(data, actions) {
return actions.subscription.create({
/* Creates the subscription */
plan_id: ‘P-0JY03957GE7592229M5RRT7I’
});
},
onApprove: function(data, actions) {
alert(data.subscriptionID); // You can add optional success message for the subscriber here
}
}).render(‘#paypal-button-container-P-0JY03957GE7592229M5RRT7I’); // Renders the PayPal button
</script>