On my webpage, I have my PayPal buttons as well another function initiateMyActivities() in the same <script></script> tag. Attempting to call initiateMyActivities() inside onApprove() makes my buttons disappear. How do i successfully call another function inside onApprove()? <script> paypal.Buttons({
createOrder: function (data, actions) {
return actions.order.create({
purchase_units: [{
amount: {
value: '0.01'
}
}]
});
},
onApprove: function (data, actions) { initiatemyActivities()
}
}).render('#paypal-button-container');
function initiateMyActivities()
{
// function body
} </script> I have my PayPal buttons and one more function in the same
... View more