<div id=”paypal-button-container-P-6JC75197P4375611JMJPLL6I”></div>
<script src=”https://www.paypal.com/sdk/js?client-id=AVBbsWJaDxv7pl7T5fTZF4DvYZby1RflmEWl_-ASTlKNugi3DCYs4kiV7hUvd4fpuk1po_V6Mlwco77o&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-6JC75197P4375611JMJPLL6I’
});
},
onApprove: function(data, actions) {
alert(data.subscriptionID); // You can add optional success message for the subscriber here
}
}).render(‘#paypal-button-container-P-6JC75197P4375611JMJPLL6I’); // Renders the PayPal button
</script>
<div id=”paypal-button-container-P-6JC75197P4375611JMJPLL6I”></div>
<script src=”https://www.paypal.com/sdk/js?client-id=AVBbsWJaDxv7pl7T5fTZF4DvYZby1RflmEWl_-ASTlKNugi3DCYs4kiV7hUvd4fpuk1po_V6Mlwco77o&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-6JC75197P4375611JMJPLL6I’
});
},
onApprove: function(data, actions) {
alert(data.subscriptionID); // You can add optional success message for the subscriber here
}
}).render(‘#paypal-button-container-P-6JC75197P4375611JMJPLL6I’); // Renders the PayPal button
</script>