I have a Paypal Button setup with the following code:
paypal.Buttons({ createSubscription: function(data, actions) { return actions.subscription.create({'plan_id': 'P-PLANID' }); }, onApprove: function(data, actions) { // Somehow pass info to Webhook } }).render('#paypal-button-container');
Is there a way to have this integrate with a webhook I have setup with BILLING.SUBSCRIPTION.ACTIVATED
?
I just created the webhook but I am not sure how I connect my PayPal Buttons to it