-
Notifications
You must be signed in to change notification settings - Fork 0
/
muc15.html
21 lines (21 loc) · 912 Bytes
/
muc15.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<div id="paypal-button-container-P-0EW72545JT7930734MT2OFWI"></div>
<script src="https://www.paypal.com/sdk/js?client-id=AcdlhrBydn_mp2vo7uIKUtV6Us5BJ1QuLrDcFwI0M8w41YgQryX3XLgC8FhEAZvVNwn2f6NM5eA51uHb&vault=true&intent=subscription" data-sdk-integration-source="button-factory"></script>
<script>
paypal.Buttons({
style: {
shape: 'pill',
color: 'blue',
layout: 'vertical',
label: 'paypal'
},
createSubscription: function(data, actions) {
return actions.subscription.create({
/* Creates the subscription */
plan_id: 'P-0EW72545JT7930734MT2OFWI'
});
},
onApprove: function(data, actions) {
alert(data.subscriptionID); // You can add optional success message for the subscriber here
}
}).render('#paypal-button-container-P-0EW72545JT7930734MT2OFWI'); // Renders the PayPal button
</script>