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