add YEARLY subscribe button to FM club website
Assigned To:
Assign By Admin On 2022-05-25
Deadline:- 909 Days Over from Deadline. You Have Missed The Deadline 909 Days Ago
Task Details :-
hi Sammy,
This small task is to add a Paypal Button to the registration page on FM club website.
DEPENDING on which product the customer is choosing the CHECKOUT button will change. see the screenshto to know which button i am talking about.
So IF USER CHOOSE $0.78 package, then hide teh default button and SHOW this button:
(all this code is for this payment button)
<div id="paypal-button-container-P-53R158079V502500MMKG7OIY"></div>
<script src="https://www.paypal.com/sdk/js?client-id=AfROvAJ9RXt5AhSN1tR44ltp-yQAZ-ngt_Gb57rGbepv1UavdeAdTXbDbcEbOO7WiDB5kb9xWY_X4h7h&vault=true&intent=subscription" data-sdk-integration-source="button-factory"></script>
<script>
paypal.Buttons({
style: {
shape: 'rect',
color: 'blue',
layout: 'vertical',
label: 'subscribe'
},
createSubscription: function(data, actions) {
return actions.subscription.create({
/* Creates the subscription */
plan_id: 'P-53R158079V502500MMKG7OIY'
});
},
onApprove: function(data, actions) {
alert(data.subscriptionID); // You can add optional success message for the subscriber here
}
}).render('#paypal-button-container-P-53R158079V502500MMKG7OIY'); // Renders the PayPal button
</script>
***Please enusre this button is displaying correctly and it looks nice on the form.
Task Current Status :-
Task Not Complete